+ (BOOL)canRecord
{
AVAuthorizationStatusauthStatus = [AVCaptureDeviceauthorizationStatusForMediaType:AVMediaTypeAudio];
if(authStatus ==AVAuthorizationStatusRestricted|| authStatus ==AVAuthorizationStatusDenied){
returnNO;
}
returnYES;
}
+ (BOOL)canRecord
{
AVAuthorizationStatusauthStatus = [AVCaptureDeviceauthorizationStatusForMediaType:AVMediaTypeAudio];
if(authStatus ==AVAuthorizationStatusRestricted|| authStatus ==AVAuthorizationStatusDenied){
returnNO;
}
returnYES;
}
本文标题:iOS 麦克风权限的判断
本文链接:https://www.haomeiwen.com/subject/snsqnttx.html
网友评论