In my iPhone app , when I use UIImagePickerControllerSourceTypePhotoLibrary as the source type, after opening it for 5 times , I get :
<Error>: More than maximum 5 filtered album lists trying to register. This will fail.
in my console.And also the image picked is gone.
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]==YES) {
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.allowsEditing = YES;
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentModalViewController:imagePicker animated:YES];
[imagePicker release];
}
And in method:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
I dismiss the modalviewController.