我在带有MFMailComposeViewController的ios 7应用程序中有一个反馈按钮.用户单击此按钮后,mailcomposer将打开,但状态栏将更改为黑色.有谁知道我该怎么办?
我只有ios7才有这个问题.我为ios7定制了我的应用程序.
MFMailComposeViewController *mailController = [[MFMailComposeViewController alloc] init];
mailController.mailComposeDelegate = self;
[mailController setSubject:@"Feedback"];
// Fill out the email body tex
NSString *emailBody = [NSString stringWithFormat:@"testest"],
[UIDevice currentDevice].model,
[UIDevice currentDevice].systemVersion];
[mailController setMessageBody:emailBody isHTML:NO];
[mailController setToRecipients:[NSArray arrayWithObjects:@"support@test.com",nil]];
dispatch_async(dispatch_get_main_queue(), ^{
[self presentModalViewController:mailController animated:YES];
}
Run Code Online (Sandbox Code Playgroud)