我的iOS 7应用程序中有一个反馈按钮,使用MFMailComposeViewController。用户点击此按钮后,邮件组合器会打开,但状态栏会变为黑色。是否有人知道我该怎么办?
我只在iOS 7上遇到这个问题。我正在为iOS 7自定义我的应用程序。
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];
}
presentViewController(picker, animated: true, completion: {UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: false)})
,其ä¸picker是var picker = MFMailComposeViewController()
。 - Darren