check for authorization status to photo library

ios, ios6, ipad, iphone, uiimagepickercontroller

Solution

ALAuthorizationStatus status = [ALAssetsLibrary authorizationStatus];

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

Problem

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?

Original source