- (BOOL)authStatus{
ALAuthorizationStatusauthor = [ALAssetsLibrary authorizationStatus];
if(author==ALAuthorizationStatusRestricted||author==ALAuthorizationStatusDenied){
//无权限
returnNO;
}else{
returnYES;
}
- (BOOL)authStatus{
ALAuthorizationStatusauthor = [ALAssetsLibrary authorizationStatus];
if(author==ALAuthorizationStatusRestricted||author==ALAuthorizationStatusDenied){
//无权限
returnNO;
}else{
returnYES;
}
本文标题:iOS开发-每日一记-获取相册访问权限
本文链接:https://www.haomeiwen.com/subject/honjdttx.html
网友评论