iOS开发-每日一记-获取相册访问权限

- (BOOL)authStatus{

ALAuthorizationStatusauthor = [ALAssetsLibrary authorizationStatus];

if(author==ALAuthorizationStatusRestricted||author==ALAuthorizationStatusDenied){

          //无权限

         returnNO;

     }else{


              returnYES;

}

你可能感兴趣的:(iOS开发-每日一记-获取相册访问权限)