需要先导入头文件 

#import <AssetsLibrary/AssetsLibrary.h>

ALAuthorizationStatus author = [ALAssetsLibrary authorizationStatus];

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

    {

        [SVProgressHUD showErrorWithStatus:@"您没有打开相册权限,请在设置里面打开相册权限"];

        

        return;

    }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2022-02-06
  • 2021-04-21
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
相关资源
相似解决方案