iOS 麦克风权限的判断

2017-03-13  本文已影响68人  小灬博

+ (BOOL)canRecord

{

AVAuthorizationStatusauthStatus = [AVCaptureDeviceauthorizationStatusForMediaType:AVMediaTypeAudio];

if(authStatus ==AVAuthorizationStatusRestricted|| authStatus ==AVAuthorizationStatusDenied){

returnNO;

}

returnYES;

}

上一篇下一篇

猜你喜欢

热点阅读