ios - ios中UITabBarController中的UITabBarController使用 Storyboard

标签 ios iphone objective-c ios7

关闭。这个问题需要details or clarity .它目前不接受答案。












想改进这个问题?通过 editing this post 添加详细信息并澄清问题.

8年前关闭。




Improve this question




“ View Controller “A”中有 3 个选项卡,“ View Controller “B”中有 2 个选项卡。

两个 View Controller 都嵌入在 UITabBarControllers 中。

当我单击“A”中的特定选项卡时,我想加载 View “B”并让它显示自己的 UITabBar 和自己的选项卡,而不是 A 推送的 UITabBar。

我尝试使用 Storyboard ,但应用程序崩溃了。

最佳答案

在 StoryBoard 中添加 1 个 TabbarViewController,然后从两个 subViewController 中删除 onviewController。

然后添加另一个 TabbarViewController 并将这个 TabbarViewController 作为第一个 TabbarViewController 的 viewControllers 附加。

enter image description here

使用这种方式你可以做到

A --> 带有 3 个选项卡的 UITabBarController

B --> 带有 2 个选项卡的 UITabBarController

enter image description here

关于ios - ios中UITabBarController中的UITabBarController使用 Storyboard ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21670615/

相关文章:

ios - 使用 FMDB 将数据插入 SQLite 时,dispatch_async 上的 EXC_BAD_ACCESS

objective-c - 我如何使窗口(osx)始终悬停在屏幕顶部

ios - Swift 中的 IBM Silverpop 推送集成

ios - 如何将 segue 添加到 rowAction 按钮?

iphone - 如何更改 UIPageControl 点

ios - 自定义 Storyboard Segue 在模拟器中有效,但在设备上无效

ios - xcode 中的全屏图像大小和命名

ios - UICollectionView多个单元格(UICollectionViewCell)在Objective-C中闪烁同步

objective-c - NSKeyedUnarchiver 无法解码我保存的对象

iphone - UIImagePicker 允许编辑卡在中心