【发布时间】:2018-03-07 22:06:52
【问题描述】:
【问题讨论】:
标签: ios iphone tabbar ios11 xcode9
【问题讨论】:
标签: ios iphone tabbar ios11 xcode9
我遇到了这个问题。我正在将 ChildViewController 添加到 UITabBarController。额外的 tabBarItem 没有出现在 iOS 10 中,但出现在 iOS 11 中,类似于您的示例。
希望这会有所帮助。
【讨论】:
为了解决这个问题,我使用了这样的[UITabBarController setViewControllers: ]; 方法:
[self setViewControllers:@[self.viewControllers[0], self.viewControllers[1], pnc, navigationConroller]];
在每次调用 tabbar 的类之前。
【讨论】: