是什么触发了照片库授权请求? iOS
What triggers Photo Library authorization request? iOS
有没有办法找到触发照片库授权请求的原因?
我找不到确切触发照片库权限请求的行。
我已经在工作区中搜索了 [PHPhotoLibrary requestAuthorization]
- 没找到。
我应该搜索什么来找到触发照片库授权请求的行?
设备已开启 iOS 9.
如果你阅读 the documentation for requestAuthorization:
,你会看到:
The first time your app uses PHAsset
, PHCollection
, PHAssetCollection
, or PHCollectionList
methods to fetch content from the library, or uses one of the methods listed in Applying Changes to the Photo Library to request changes to library content, Photos automatically and asynchronously prompts the user to request authorization. Alternatively, you can call this method to prompt the user at a time of your choosing.
所以,是 [[PHCachingImageManager alloc] init]
。
此行需要权限。
有没有办法找到触发照片库授权请求的原因?
我找不到确切触发照片库权限请求的行。
我已经在工作区中搜索了 [PHPhotoLibrary requestAuthorization]
- 没找到。
我应该搜索什么来找到触发照片库授权请求的行?
设备已开启 iOS 9.
如果你阅读 the documentation for requestAuthorization:
,你会看到:
The first time your app uses
PHAsset
,PHCollection
,PHAssetCollection
, orPHCollectionList
methods to fetch content from the library, or uses one of the methods listed in Applying Changes to the Photo Library to request changes to library content, Photos automatically and asynchronously prompts the user to request authorization. Alternatively, you can call this method to prompt the user at a time of your choosing.
所以,是 [[PHCachingImageManager alloc] init]
。
此行需要权限。