Situation: I have a few ViewControllers, all of them have a NavigationBar with a camera button. When the button gets clicked I want to present a UIImagePickerController with a custom overlay view. After a picture is taken, I want to present another ViewController, do something there with the picture and then segue to a specific ViewController (not necessarily the one where the button was clicked, but always the same).
I know how to pass data around, load the ImagePicker and use a custom overlay view, etc. I'm just not quite sure, how I should design that scenario to avoid duplicate code and structure everything in a logical way. I'm using Storyboard for my App.
Aucun commentaire:
Enregistrer un commentaire