I want to popup MFMessageCompose
model on (topviewcontroller) from another NSObject
class method which is executed in background.
I popup MFMessageCompose
model using this code :
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];
}
it works fine. but when i click on send or cancel button then app get crash and gives error is
wait_fences: failed to receive reply: 10004003
please suggest me.