Make two functions for take photo and select photo. Call the functions in handler of alertcontroller.
Alert ctrl is not good idea for something like camera options, Use actionSheetController. They added an example of how to use it. If you still having a problem ping me.
