NOTE: My questions is not a duplicate of questions asking HOW to detect if the user has denied access.
I saw a lot of code on HOW to detect if the user has given access to the camera, but I'd need to know WHEN the user denies access.
My scenario is the next:
User opens view A, A asks for access to the camera, pop up appears, user denies access, user is redirected to B.
Is this possible?
Actually, there's a way of doing it:
[AVCaptureDevice requestAccessForMediaType:AVMediaTypeVideo completionHandler:^(BOOL granted) {
if(granted){
NSLog(@"Granted access");
} else {
NSLog(@"Not granted access");
}
}];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With