cocoa touch - iOS - wait_fences MFMessageComposeViewController -
cocoa touch - iOS - wait_fences MFMessageComposeViewController -
i'm trying show mfmessagecomposeviewcontroller view 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 check log output see warning message:
wait_fences: failed receive reply: 10004003 what reason of behaviour , warning message mean?
if you're still dealing problem (or if others nail later):
wait_fences typically means manipulating ui off-screen (or during competing animation) - perchance either within mfmailcomposeviewer, or more behind it. (there ton of other wait_fences questions here on stack.)
in other words, problem not code posted, other ui events happening around it.
if (and searching) doesn't lead fix, can manually troubleshoot problem commenting-out surrounding ui-related code until works, or (failing that) cut down failing code simplest possible illustration version , post here can troubleshoot further.
(also, presentmodalviewcontroller:animated: deprecated in ios6, question asked in halcyon days of ios5, i'm sure that's not problem.)
ios cocoa-touch
Comments
Post a Comment