简体   繁体   English

IOS:情节提要中的MFMailComposeViewController不显示“收件人:”字段

[英]IOS: MFMailComposeViewController in Storyboard doesn't show “To:” field

I'd like to know how to implement MFMailComposeViewController correctly using storyboards. 我想知道如何使用情节提要正确实现MFMailComposeViewController。 When I implement it like a non-storyboard project (where it works fine), the Title Bar stays over the address field "To:" 当我像非故事板项目一样实现它(可以正常工作)时,标题栏将停留在地址字段“收件人:”上

screenshot 屏幕截图

在此处输入图片说明

Is there another way to do the same operation? 还有另一种方法可以执行相同的操作吗?

The MFMailComposeViewController needs to be presented from a view controller which occupies the full screen. MFMailComposeViewController需要从占据全屏的视图控制器中呈现。 It looks like you have presented it from a view controller that only occupies the area below the title (navigation) bar. 看起来您是从仅占据标题(导航)栏下方区域的视图控制器呈现的。 Try navigating to the view controllers presentingViewController or parentViewController and having that view controller present the MFMailComposeViewController . 尝试导航到presentingViewControllerparentViewController的视图控制器presentingViewController并让该视图控制器呈现MFMailComposeViewController

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM