访问相机权限弹框的点击方法获取

NSString *mediaType = AVMediaTypeVideo;//读取媒体类型
AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:mediaType];//读取设备授权状态
[AVCaptureDevice requestAccessForMediaType:mediaType completionHandler:^(BOOL granted) {
if (granted) {
NSLog(@"允许了");
}else
{
NSLog(@"拒绝了");
}
}];

你可能感兴趣的:(访问相机权限弹框的点击方法获取)