UITabbarController 的“完成”隐藏在 UINavigationController 后面的按钮

发布于 2024-12-21 22:53:47 字数 351 浏览 4 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

没企图 2024-12-28 22:53:47

UITabBarController 的实例只能是窗口的根视图控制器。将 UITabBarController 放置在另一个容器视图控制器(例如 UINavigationController)中可能会导致未定义的行为。

来自 UITabBarController类参考...

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

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.

From the UITabBarController Class Reference...

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文