I have an app, when it detects (eg CIDetect for face) it will take a picture and upload to server for processing. However during this process I want to stop the camera video feed so it does not continue to take more pictures..I tried
[[videoDataOutput connectionWithMediaType:AVMediaTypeVideo] setEnabled:NO];
(videoDataOutput is a AVCaptureVideoDataOutput object), but it does not seem to work...