• iOS 中获取系统的 相册以及相机的访问权限


     AVAuthorizationStatus state = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo]; //获取相机的访问权限

    四种枚举 值。

    AVAuthorizationStatusNotDetermined = 0,

    AVAuthorizationStatusRestricted,

    AVAuthorizationStatusDenied,

    AVAuthorizationStatusAuthorized

     ALAuthorizationStatus state = [ALAssetsLibrary authorizationStatus]; 获取相册的访问权限

      ALAuthorizationStatusNotDetermined = 0, // User has not yet made a choice with regards to this application

        ALAuthorizationStatusRestricted,        // This application is not authorized to access photo data.

                                                // The user cannot change this application’s status, possibly due to active restrictions

                                                //  such as parental controls being in place.

        ALAuthorizationStatusDenied,            // User has explicitly denied this application access to photos data.

        ALAuthorizationStatusAuthorized         // User has authorized this application to access photos data.

  • 相关阅读:
    二维数组转换
    二维数组转换
    二分法原理
    二维数组举例
    二分法原理
    二维数组举例
    二分法原理
    二分法原理
    linux中BIND服务程序安全的加密传输TSIG机制
    linux系统中部署DNS从服务器
  • 原文地址:https://www.cnblogs.com/Seeulater/p/4550197.html
Copyright © 2020-2023  润新知