When I access my Photo Library with an UIImagePicker to choose a photo, the app shows me sometimes a black screen and sometimes a screen that says that I have to give permis
For those still getting this error in iOS 10, it is a question of new Privacy settings implemented in iOS 10.
Basically, in the Info.plist
, you have to state why you want to access the Photo library by setting the Privacy - Photo Library Usage Description
key (note, this can be left to a blank string).
More about it here: http://useyourloaf.com/blog/privacy-settings-in-ios-10/