小编NoB*_*ody的帖子

iOS 7状态栏中的MFMailComposeViewController是黑色的

我在带有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)

ios ios7 mfmailcomposeviewcontroller

59
推荐指数
6
解决办法
2万
查看次数

标签 统计

ios ×1

ios7 ×1

mfmailcomposeviewcontroller ×1