码迷,mamicode.com
首页 > 其他好文 > 详细

系统相册

时间:2016-01-12 23:07:22      阅读:271      评论:0      收藏:0      [点我收藏+]

标签:

 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.

 

 
 

系统相册

标签:

原文地址:http://www.cnblogs.com/hsxblog/p/5125794.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!