由于应用程序内的 iPhone 消息撰写屏幕而缺少 UIToolBar
由于消息撰写屏幕而出现严重错误。
我正在开发一个基于 TabBar 的应用程序。在某些屏幕中,我通过设置 hidesBottomBarWhenPushed = YES; 来显示 ToolBar 而不是 tabBar,并且它每次都工作正常。但在 1 个屏幕中,我通过在 iphone 应用程序中打开消息撰写屏幕来发送短信。因此,如果我打开消息撰写屏幕并单击消息屏幕的取消按钮,就会出现问题。
因此,每当回到我显示工具栏的模块时。因此,单击按钮时没有工具栏。完全空白,没有工具栏,也没有选项卡栏(选项卡栏非常明显,我已经设置了 hidesBottomBarWhenPushed)。但是为什么现在由于撰写屏幕而显示工具栏?
没有从撰写屏幕到此屏幕的链接。截然不同的实现和不同的控制器。
我调试了一下,工具栏框架也没有问题。
请帮忙
Something going wrong badly due to Message Compose Screen.
I am working on a TabBar based application. In some screens I am showing ToolBar instead of tabBar by setting hidesBottomBarWhenPushed = YES;
and its working fine everytime. But In 1 screen I am sending SMS by opening Message Compose Screen within the iphone App. So problem occurs if I open Message Compose Screen and i clicked Cancel button of Message Screen.
So, whenever going back to that module where I was showing ToolBar. So on click of button no ToolBar. Totally blank, no toolbar and no tabbar (tabbar is quite obvious i have already set hidesBottomBarWhenPushed).. But why toolbar now showing due to Compose screen ?
There is no link with compose screen to this screen. Far different implementation and different controllers.
I have check by debugging, Toolbar frame is also fine.
Please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题已修复...将其添加到关键帧窗口时出现问题
Issue fixed... had problem with adding it to keyframe window
我认为这是因为 MFMessageComposeViewController 有一个导航栏。您的应用程序应该是一个基于导航的应用程序。否则工具栏的框架位置将受到影响。我曾经遇到过这样的问题。所以我将应用程序更改为基于导航但隐藏了导航控制器。
希望这可以帮助你,
快乐编码!
I think it is because the MFMessageComposeViewController has got a navigation bar. Your application should be a navigation based application for that. Otherwise your toolbar's frame position will be affected. I had this kind of problem once. So i changed the application into navigation based but hid the navigation controller.
Hope this might help you,
Happy coding!