1

我们正在使用 aMFMailComposeViewController发送电子邮件。出于某种原因,在 iOS 7 中的横向视图下,消息正文中文本的右边缘被切断,就好像它的剪裁边界从边缘插入大约 50 px。文本区域的剪切部分仍然响应点击并在进行选择时显示突出显示(没有文本可见)。

此问题不会在纵向视图中发生,也不会在 iOS 6.1 中发生。视图中的其他字段(收件人、抄送/密送、主题)也不会遇到此问题。

我正在使用类似于以下代码的内容建立视图:

if ([MFMailComposeViewController canSendMail]) {
    MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
    picker.mailComposeDelegate = self;
    picker.modalPresentationStyle = UIModalPresentationFullScreen;
    picker.navigationBar.barStyle = UIBarStyleBlack;

    NSString *content = [NSString stringWithFormat: @"Body of the email. %@", someText];
    [picker setMessageBody:content isHTML:NO];

    [viewController presentViewController:picker animated:YES completion:nil];
}

picker.view.bounds.size.width在演示 ( & )之后检查视图的边界.height给了我预期的 768x1024。

官方文档和头文件都没有给我任何可能发生的事情的迹象。iOS 7 中发生了什么变化,我该如何纠正?

4

1 回答 1

2

我认为UIModalPresentationFullScreen可能是问题所在。邮件撰写视图通常旨在显示为UIModalPresentationPageSheet.

无论如何,您应该在https://bugreport.apple.com打开一个错误报告。

于 2013-10-24T18:18:01.920 回答