iPhone, "More than maximum 5 filtered album lists trying to register. This will fail." Error iPhone, "More than maximum 5 filtered album lists trying to register. This will fail." Error xcode xcode

iPhone, "More than maximum 5 filtered album lists trying to register. This will fail." Error


I think you are not checking the source type. You might be doing

 self.sourceType =UIImagePickerControllerSourceTypePhotoLibrary;

If this is the case, then you have to check the source type before assigning it directly.like

 if ([UIImagePickerController isSourceTypeAvailable:     UIImagePickerControllerSourceTypePhotoLibrary])   {       // Set source to the Photo Library       self.sourceType =UIImagePickerControllerSourceTypePhotoLibrary;  }

I hope it helps


Instead of this

self.sourceType =UIImagePickerControllerSourceTypePhotoLibrary;

Use

self.sourceType =UIImagePickerControllerSourceTypeSavedPhotosAlbum;


This worked it out for me:

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {    [picker dismissModalViewControllerAnimated:YES];    picker = nil;    UIImage *image = [info objectForKey:@"UIImagePickerControllerEditedImage"];}

I just set "picker = nil;" after dismissing the ModalViewController and then it works perfect :)

Hope it's going to help you out too :)