+(BOOL)getSystemPhotoAuthority { BOOL agree=NO; AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo]; if(authStatus == AVAuthorizationStatusAuthorized||authStatus == AVAuthorizationStatusNotDetermined) { agree=YES; }else { agree=NO; } return agree; } +(BOOL)getSystemImageAuthority { BOOL agree=NO; ALAuthorizationStatus author = [ALAssetsLibrary authorizationStatus]; if(author == ALAuthorizationStatusAuthorized||author == ALAuthorizationStatusNotDetermined) { agree=YES; }else { agree=NO; } return agree; }
时间: 2024-11-05 13:32:12