如果视图具有自定义 UINavigationBar,MFMailComposeViewController 发送和取消按钮将不起作用
嗨,
如上图所示,当我尝试编写一个自定义导航栏时,我的 viewcontroller 类有一个自定义导航栏使用 MFMailComposeViewController 发送电子邮件,MFMailComposeViewController 视图的导航栏被我的自定义导航栏覆盖。所以我无法单击“取消”和“发送”按钮。
我都尝试过 self.navigationController.navigationBarHidden = YES & [[self navigationController] setNavigationBarHidden:YES 动画:NO]
但导航栏不会消失。有人对此有什么建议吗?
Hi,
As in the above image, My viewcontroller class has a customnavigationbar, when I am trying to compose an email using MFMailComposeViewController, the navigationbar of MFMailComposeViewController view is getting covered by but my custom navigationbar. So I was unable to click on the "Cancel" and "Send" button's.
I tried both
self.navigationController.navigationBarHidden = YES &
[[self navigationController] setNavigationBarHidden:YES animated:NO]
but the navigation bar just won't go away. Anyone have suggestions for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论