etecting whether or not the subject is a moving body and a function of performing focus control of an image-taking optical system in a first sequencein which at least one of the first and second focus detectors is used and a second sequence in which at least the other of the focus detectors is used.