判断用户是否禁用了app相机使用权限.
1.首先#import <AVFoundation/AVFoundation.h>
2.然后
AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo];
if(authStatus ==AVAuthorizationStatusRestricted|| authStatus ==AVAuthorizationStatusDenied)
{
NSLog(@"请在iPhone的"设置-隐私-相机"选项中,允许APP访问你的相机.");
return;
}
else
{
}