zoukankan      html  css  js  c++  java
  • 系统相册

     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.

     
     
  • 相关阅读:
    Block编程
    自己写Web服务器(续)
    C# 2.0对现有语法的改进
    使用CDN
    优化网站设计(一):减少请求数
    MongoDB Shell的使用
    memcache 和appfabric
    go语言中几个有趣的特性以及对go的看法
    bpm流程平台
    Socket编程 (异步通讯) (Tcp,Udp)Part2
  • 原文地址:https://www.cnblogs.com/hsxblog/p/5125794.html
Copyright © 2011-2022 走看看