I have an app that uses the UIImagePickerController
to take a picture. The problem is that I only want the camera option to be available and I understand that I need to hide the standard controls:
cameraUI.showsCameraControls=NO;
and use a cameraOverlayView
to provide my own controls. I have had a look at Apple's PhotoPicker
project already and my initial problem is how do I get an Overlay
object onto my storyboard? I can't find such an object in the library.
Here is the code :
Declare this in your header file :
Add this OverlayView.h and .m Class from Apples PhotoPicker.
Actions for capturing photo using custom camera button:
Output will come like this below attached screenshot (I have added a capture button and cancel button in custom overlay view):
Happy Coding :)