UITabbarController 的“完成"隐藏在 UINavigationController 后面的按钮 [英] UITabbarController's "Done" button hidden behind UINavigationController

查看:27
本文介绍了UITabbarController 的“完成"隐藏在 UINavigationController 后面的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Xcode 4.2 构建一个项目,我也在使用 Storyboard.所以基本上,我有一个 UINavigationcontroller,它是我的初始视图,连接到我的主菜单"视图.在我的主菜单"中,我有一个链接到标签栏控制器的按钮,它有 20 个标签.因此,会出现更多"按钮,单击更多"按钮时会出现编辑"按钮.一切正常,但我遇到的唯一问题是,一旦我单击编辑,配置页面就会向上滑动,并且完成"按钮隐藏在导航栏后面.无论如何,我可以将配置页面向上滑动到导航栏的前面吗?

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 ?

此外,我使用了 Xcode 4.2 的新功能.您可以在编辑器工具栏下嵌入 NavigationController"和嵌入 TabbarController".谢谢 !

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 !

推荐答案

UITabBarController 的实例应该只作为窗口的根视图控制器.将 UITabBarController 放在另一个容器视图控制器中,例如 UINavigationController,可能会导致未定义的行为.

An instance of UITabBarController should only ever be the root view controller of your window. Placing a UITabBarController inside another container view controller, like UINavigationController, can lead to undefined behavior.

来自 UITabBarController 类参考...

From the UITabBarController Class Reference...

因为 UITabBarController 类继承自UIViewController 类,标签栏控制器有自己的视图可以通过 view 属性访问.部署标签栏时界面,您必须将此视图安装为窗口的根目录.与其他视图控制器不同,标签栏界面不应该作为另一个视图控制器的子级安装.

Because the UITabBarController class inherits from the UIViewController class, tab bar controllers have their own view that is accessible through the view property. When deploying a tab bar interface, you must install this view as the root of your window. Unlike other view controllers, a tab bar interface should never be installed as a child of another view controller.

这篇关于UITabbarController 的“完成"隐藏在 UINavigationController 后面的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆