I tried setting CFBundleDisplayName and Privacy - Photo Library Usage Description but still not working
But in the settings it has permission on/off
I tried uninstalling the app and installing again but it never asks permission if it is off it shows the above screenshot...user has to go to settings and turn it on.
so how to make it ask for permission on first use.
Here is the code that I am using
let imgPicker:UIImagePickerController=UIImagePickerController()
imgPicker.delegate=self
imgPicker.sourceType=UIImagePickerControllerSourceType.PhotoLibrary
imgPicker.mediaTypes=[kUTTypeImage as String,kUTTypeMovie as String]
UIApplication.sharedApplication().keyWindow?.rootViewController?.presentViewController(imgPicker, animated: true, completion: nil)
