如何从简单的 UIViewController 调用 TabbarViewControllers 连接的 viewController,其中简单的 UIViewController 嵌入在 UINavigationController 中。当将一个 View Controller 移动到另一个 View Controller 时,我想要 UINavigationController 提供的相同的 Push 和 Pop 效果。在谷歌中挖掘后,我发现在导航堆栈中推送标签栏 View Controller 并不是构建应用程序的好方法。我尝试创建自定义交易动画,但它与 UINavigation 交易效果不同。请给出一些建议或解决方案。谢谢!!
最佳答案
可以直接将UITabbarController设置为window的rootViewController。
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
_tabObj = (TabbarViewController*) [storyboard instantiateViewControllerWithIdentifier:@"TabbarViewController"];
self.window.rootViewController = _tabObj;
检查上面的代码。
关于ios - 如何从嵌入在导航 Controller 中的简单 View Controller 调用选项卡栏 View Controller ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45351513/