我正在使用以下代码显示应用内短信。我的应用没有状态栏。(我在纵向视图中使用 320x480 像素的屏幕)。
问题是当我加载控制器时,屏幕变黑,如您从图像中看到的那样......
这是代码:
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];