IOS - wait_fences MFMessageComposeViewController

I am trying to show the view of MFMessageComposeViewController by doing:

MFMessageComposeViewController *mfMessageComposeVC = [[MFMessageComposeViewController alloc] init]; if([MFMessageComposeViewController canSendText]) { mfMessageComposeVC.body = @"Test."; mfMessageComposeVC.recipients = [NSArray arrayWithObjects:@"123456", @"34567", nil]; mfMessageComposeVC.messageComposeDelegate = self; [self presentModalViewController:mfMessageComposeVC animated:YES]; } 

When I check the log output, I see this warning message:

 wait_fences: failed to receive reply: 10004003 

What will be the reason for this behavior and what exactly does this warning mean?

+7
source share
2 answers

If you are still dealing with this problem (or if others hit it later):

wait_fences usually means that you control an external screen (or during a competing animation) - perhaps either inside MFMailComposeViewer , or most likely behind it. (There are several other wait_fences questions in wait_fences .)

In other words, the problem is most likely not with the code you posted, but with other user interface events that occur around it.

If this (and the search) does not lead to a correction, you can manually fix the problem by commenting on the surrounding code associated with the user interface until it works, or (otherwise) reduce the error code to its simplest possible a sample version and post it here so that we can fix it.

(Also, presentModalViewController:animated: deprecated in iOS6, but this question has been asked in the last days of iOS5, so I'm sure no problem.)

+1
source

As far as I know, this has nothing to do with your application and is an OS level message.

0
source

All Articles