Note that there are some explanatory texts on larger screens.

plurals
  1. POUIImagePickerController crash
    primarykey
    data
    text
    <p>I'm trying to present an UIImagePickerController. It works fine on simulator, but after few times of presenting, I get an error in the console. </p> <blockquote> <p>More than maximum 5 filtered album lists trying to register. This will fail.</p> </blockquote> <p>Here is the code: </p> <pre><code>- (IBAction)imageSelectorPressed:(id)sender { UIImagePickerController* picker = [[[UIImagePickerController alloc] init] autorelease]; if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) { // Set source to the Photo Library picker.sourceType =UIImagePickerControllerSourceTypePhotoLibrary; } picker.delegate = self; UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:picker]; self.imagePopOverController = popover; [self.imagePopOverController setDelegate:self]; [self.imagePopOverController presentPopoverFromRect:[kepekBtn frame] inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; [popover release]; } -(void)popoverControllerDidDismissPopover:(UIPopoverController *)popoverController { [popoverController dismissPopoverAnimated:YES]; [self setImagePopOverController:nil]; } - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [self.imagePopOverController dismissPopoverAnimated:NO]; [image setImage:[info objectForKey:@"UIImagePickerControllerOriginalImage"]]; picker = nil; [self setImagePopOverController:nil]; } -(void)imagePickerControllerDidCancel:(UIImagePickerController *)picker { [self.imagePopOverController dismissPopoverAnimated:NO]; picker = nil; [self setImagePopOverController:nil]; } </code></pre> <p>UPDATE: I've checked the contact app on the iPad. Edited a person, and it has a same error in the console log. BUT it is not crashing, while my app is. So the proper question: How can I fix it? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload