iosuiimageuiimagepickercontrollercamera-overlay

Capture a UIImage without dismissing the UIImagePickerController?


I have used a custom overlay view over a UIImagePickerController to capture a UIImage.

The custom overlay view has one button. On the click of this button I want to capture the UIImage without closing the UIImagePickerController? How do I get a UIImage without using the didFinishPickingMediaWithInfo method?


Solution

  • You can use the didFinishPickingMediaWithInfo delegate method. Just don't dismiss the image picker in the delegate method and the image picker will stay in view.