MFMessageComposeViewControllerDelegate error - black screen
Posted
by
user1053839
on Stack Overflow
See other posts from Stack Overflow
or by user1053839
Published on 2012-09-16T15:35:30Z
Indexed on
2012/09/16
15:37 UTC
Read the original article
Hit count: 210
I'm using the following code to show in-app sms. My app don't have a status bar. (I'm using 320x480 pixels screen in portrait view).
the problem is that when I load the controller, the screen becomes black as you can see from the image...
this is the code:
MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
picker.messageComposeDelegate = self;
picker.recipients = [NSArray arrayWithObject:@"123456789"]; // your recipient number or self for testing
picker.body = @"test";
[self presentModalViewController:picker animated:YES];
© Stack Overflow or respective owner