Question

I know that there are other questions that deal with this error, but those answers don't help me any. I was wondering if anyone knew the exact cause, and if no one does, here is the code:

-(void) imagePickerController : (UIImagePickerController *) picker
        didFinishPickingImage : (UIImage *) image
                  editingInfo : (NSDictionary *) editingInfo {

    self.imageView.image = image;
    [picker dismissModalViewControllerAnimated:YES];
    [picker release];
    //[self myNextResponder];
}

This error: wait_fences: failed to receive reply: 10004003, appears right after this method exits. I have googled all over, and cannot figure it out.

Was it helpful?

Solution

It appears that you used the picker object as the caller of present/dismissModalViewController. The documentation recommends using the "parent" view controller.

For the "parent" I used self.navigationController (since it won't be going anywhere)

The implementation of my picker delegate's cancel method looks like this...

- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
{
    // make sure the picker doesn't try to access the soon to die delegate
    picker.delegate = nil;

    [self.navigationController dismissModalViewControllerAnimated:YES];
    [self.navigationController popViewControllerAnimated:YES];
}

OTHER TIPS

Simply comment the line

//[picker release];

and try

Make sure you don't have any keyboards shown up on the screen. Use [yourTextFieldOrTextView resignFirstResponder] if you have. Thanks

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top