Detect when camera is auto-focusing

autofocus, ios, ios7, video-capture

Solution

`adjustingFocus` property. Indicates whether the device is currently adjusting its focus setting. (read-only) *Notes: You can observe changes to the value of this property using Key-value observing.

iOS 4.0 and later

https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVCaptureDevice_Class/Reference/Reference.html#//apple_ref/occ/instp/AVCaptureDevice/adjustingFocus

Problem

I am working on video application. I want to discard the video frames when camera is autofocusing. During autofocus image captured become blurred and image processing for that frame become bad but once autofocus is done, image processing become excellent. Any body give me solution?

Original source