Search code examples
iphoneiosipadios6uiimagepickercontroller

check for authorization status to photo library


Is there a way to check for your app's authorization-level to the device's photo library under the new iOS 6 authorization scheme?

In other words, is there an equivalent for ABAddressBookGetAuthorizationStatus that goes against the photo library instead?


Solution

  • ALAuthorizationStatus status = [ALAssetsLibrary authorizationStatus];
    

    The docs for ALAuthorizationStatus show the possible values. This API only works under iOS 6.0 or later.