I am creating fully custom overlay for image picker controller. First stage is easy: I am get first view with record/take a shot button, which call takePicture()
method.
Next stage is change UI to "Retake" or "Use photo" which is also with my own design. "Retake" probably can be imitated by calling presentViewController
again. How should I imitate "Use photo" button?
You can imitate use photo by presenting a view controller that gives user option to edit the taken image and adding save and cancel button as well. How does that sound?
You can easily inherit
UIImagePickerController
Objective-C
Then override
viewDidLoad
and customize UI to your needs by creatingUIView
object and set it toself.cameraOverlayView
. In my example it is custom flash button.Your controls of camera could be like this
Please pay attentions that for not showing to user "Retake" and "Use photo" buttons you need to set
allowsEditing
to falseAnd actually the same for Swift 2.2+