关闭。这个问题需要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 附加。
使用这种方式你可以做到
A --> 带有 3 个选项卡的 UITabBarController
B --> 带有 2 个选项卡的 UITabBarController
关于ios - ios中UITabBarController中的UITabBarController使用 Storyboard ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21670615/