In my iOS app I have an ImageView and two Buttons for opening the camera and the photolibrary. When I click on one of the buttons the app closes. (I\'m running the app on my dev
If you are running on iOS10, you have to add entries in Info.plist for accessing camera
put this key in Info.plist
Privacy-Camera Usage Description
http://useyourloaf.com/blog/privacy-settings-in-ios-10/
If not the app would crash as is happening in your case