Reputation: 50298
Everything works fine with my custom UIImagePickerController
, except for a random case every 4 or 5 times when the following delegate method is not called:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
It only happens with video recording. I'm able to stop the video capture, but then the delegate method is not called on a rather random basis.
What could I be missing? Would the fact that the UIImagePickerController
class is dismissed (dismissModalViewController
) have anything to do with it not being called? Running out of ideas...
Upvotes: 0
Views: 491
Reputation: 50298
Turns out that dismissing the UIImagePickerController
right after [camera stopVideoCapture]
was the problem. If I wait to dismiss it once the delegate method was called, then no problem occurs. Note that this is only an issue when doing video.
Upvotes: 2