目标 C:TabBarController 和 TableViewController [英] Objective C: TabBarController and TableViewController

查看:25
本文介绍了目标 C:TabBarController 和 TableViewController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个 TabelView-Navigation 并在底部永久有一个 TabBar.

i want a TabelView-Navigation and permanently a TabBar at the bottom .

我推了 TabBarController.它包含一个控制器列表(ViewController、...和 ​​TableViewController)但是,如果我在 TableView 中向下导航,则 TabBar 会移到窗口外的左侧(就像旧表格一样).

I pushed the TabBarController. It contains a list of Controllers (ViewController, ... and the TableViewController) But if i navigate down in the TableView the TabBar moves to the left outside the window (like the old Table).

如何在不丢失他的情况下使用 TabBarController?

How can i use the TabBarController without losing him?

推荐答案

UITabBarController 需要是根视图控制器.听起来您正在将一个 UITabBarController 推送到 UINavigationController 的堆栈上.您要做的是使 UINavigationController 成为由标签栏控制器管理的视图控制器之一.

The UITabBarController needs to be the root view controller. It sounds like you are pushing a UITabBarController onto the stack of a UINavigationController. What you want to do is make the UINavigationController one of the view controllers managed by the tab bar controller.

这篇关于目标 C:TabBarController 和 TableViewController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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