UITabbarController 的“完成”隐藏在 UINavigationController 后面的按钮
我正在使用 Xcode 4.2 构建一个项目,并且还使用 Storyboard。所以基本上,我有一个 UINavigationcontroller 这是我的初始视图,连接到我的“主菜单”视图。在我的“主菜单”中,我有一个链接到选项卡栏控制器的按钮,该控制器有大约 20 个选项卡。因此,会出现“更多”按钮,并且当单击“更多”按钮时,会出现“编辑”按钮。一切正常,但我遇到的唯一问题是,一旦单击“编辑”,配置页面就会向上滑动,并且“完成”按钮隐藏在导航栏后面。无论如何,我可以将配置页面滑到导航栏前面吗?
另外,我使用了 Xcode 4.2 的新功能。您可以在编辑器工具栏下“嵌入NavigationController”和“嵌入TabbarController”。谢谢 !
I'm building a project using Xcode 4.2 and I'm also using the Storyboard. So basically, I have a UINavigationcontroller which is my initial view, connected to my "Main Menu" view. Inside my "Main Menu" I have a button that is linked to a tabbar controller, which has like 20 tabs. Therefore, a "More" button appears and when the "more" button is clicked an "edit" button appears. Everything works fine, but the only problem I have is that once I click edit, the configure page slides up and the "done" button is hidden behind the Navigation bar. Anyway I can the configure page slide up infront of the Navigation bar ?
Also, I used the Xcode 4.2's new feature. Where you can "Embed in NavigationController" and "Embed in TabbarController" under the Editor Toolbar. Thank you !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
UITabBarController
的实例只能是窗口的根视图控制器。将UITabBarController
放置在另一个容器视图控制器(例如UINavigationController
)中可能会导致未定义的行为。来自
UITabBarController
类参考...An instance of
UITabBarController
should only ever be the root view controller of your window. Placing aUITabBarController
inside another container view controller, likeUINavigationController
, can lead to undefined behavior.From the
UITabBarController
Class Reference...