I am using this code, but unfortunately it doesn\'t work.
After a user has denied camera access, I want to ask them for permission to use the camera again the next t
Once they have denied camera access, the user can authorize camera use for your app in Settings. By design, you can't override this in your own code.
You can detect this case with the following sample code and then explain to the user how to fix it: iOS 7 UIImagePickerController Camera No Image
NSString *mediaType = AVMediaTypeVideo; // Or AVMediaTypeAudio
AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:mediaType];
// The user has explicitly denied permission for media capture.
else if(authStatus == AVAuthorizationStatusDenied){
NSLog(@"Denied");
}