我想从另一个在后台执行的类方法中 弹出MFMessageCompose
模型(topviewcontroller) 。NSObject
MFMessageCompose
我使用此代码弹出模型:
MFMessageComposeViewController * controller = [[MFMessageComposeViewController alloc] init];
if([MFMessageComposeViewController canSendText])
{
controller.body = @"Check out FundooSpace for mobile.Download it now from app.fundoospace.net/FundooSpace/d";
controller.recipients = (NSArray *)passa;
passa = nil;
AppDelegate * appDelegateObject1 = (AppDelegate *)[[UIApplication sharedApplication] delegate];
controller.messageComposeDelegate = self;
[appDelegateObject1.navigationCntr.topViewController presentModalViewController:controller animated:NO];
}
它工作正常。但是当我点击发送或取消按钮时,应用程序崩溃并给出错误是
wait_fences: failed to receive reply: 10004003
请建议我。