iOS 麦克风权限的判断
2017-03-13 本文已影响68人
小灬博
+ (BOOL)canRecord
{
AVAuthorizationStatusauthStatus = [AVCaptureDeviceauthorizationStatusForMediaType:AVMediaTypeAudio];
if(authStatus ==AVAuthorizationStatusRestricted|| authStatus ==AVAuthorizationStatusDenied){
returnNO;
}
returnYES;
}