I am retrieving photos from the photo library using ELCImagePickerController. That works fine in the iPad simulator that shows photos from the photo library. But it does not work on iPad devices.
That shows a failure error means there are no photos, even though the device has photos.
I used the following
ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
[library enumerateGroupsWithTypes:ALAssetsGroupAll
usingBlock:assetGroupEnumerator
failureBlock:assetGroupEnumberatorFailure];
Works for simulators, but not for iPad devices.
Can anybody reply, what's the problem there?
The error message you are receiving indicates that the user has denied your program access to the photo library, by denying access to Location Services. For some unknown reason Apple uses Location Services permission to control access to the photo library via the AssetsLibrary framework. Go into the Settings application and make sure that Location Services is on and that it is allowed for your application.
My guess as to why they did this is that they are concerned that some app might somehow bypass Location Services being denied by loading all the photos from the library and looking for EXIF geotagging data.