在横向模式下启动/限制 iphone 应用内邮件
我的应用程序是横向的。我想在横向启动应用程序内电子邮件编辑器并对其进行限制。谁能建议如何做到这一点?我创建了一个具有正确自动旋转设置的视图控制器,以使我的应用程序保持横向,但不确定如何告诉 MFMailComposeViewController 请以横向启动并保持在那里(并停止使键盘旋转)。
帮助?
My app is landscape. I would like to launch the in-app email composer in landscape and restrict it as such. Can anyone advise how to do this? I created a view controller with the proper auto-rotate settings to keep my app in landscape but am unsure how to tell the MFMailComposeViewController to please launch in landscape and stay there (and stop making the keyboard rotate).
Help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是回答他的评论,而不是原来的问题。
我也遇到了这个问题,这个片段似乎对我有用:
This is answering his comment and not the original question.
I had this problem as well and this snippet seems to work for me:
首先在 info.plist 文件中添加以下属性
支持的界面方向
“横向(右主页按钮)”
比使用presentModalViewController
First Add following property in info.plist file
Supported interface orientations
"Landscape (right home button)"
than use presentModalViewController