#import <AVFoundation/AVCaptureDevice.h>

#import <AVFoundation/AVMediaFormat.h>

 

AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo];

    if (authStatus == AVAuthorizationStatusRestricted ||

        authStatus ==AVAuthorizationStatusDenied){

        //无权限

    }

posted on 2014-11-29 17:35  xieweiwei  阅读(1331)  评论(0编辑  收藏  举报