I have tried to implement the Asset Library and create a Custom Image Picker. Specifically, I am trying to run the code given here: http://icodeblog.com/2010/10/07/cloning-uiimagepickercontroller-using-the-assets-library-framework/
The code runs perfectly well in Simulator 4.1 but when I try 4.0 or 4.2 it gets stuck on the Loading screen and it gives me the following comment on the GDB:
2010-11-16 16:37:27.514 ELCImagePickerDemo[49819:6b03] A problem occured
It's from this line in the code:
ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];
[library enumerateGroupsWithTypes:ALAssetsGroupAll usingBlock:assetGroupEnumerator failureBlock:^(NSError *error)
{
NSLog(@"A problem occured");
}];
Somehow I am not able to figure out what is the problem. I have added the Asset Lib framework and everything.