在 iPod 应用程序的 3.0 版本中(也可能在以前的版本中),当同步后启动 iPod 应用程序时,UITabBarController 会出现且未选择任何选项卡...
有什么方法可以实现相同的行为吗?或者这只是 iPod 应用程序在启动时显示的 Default.png?
最佳答案
当您的标签栏已加载时,这将起作用:
self.tabBarController.selectedViewController = nil;
在 applicationDidFinishLaunching 中,您必须使用如下内容:
[tabBarController PerformSelector:@selector(setViewController:) withObject:nil afterDelay:0];
关于iphone - 未选择 Controller 的 UITabBarController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1050772/