ios - 当 NavigationController 将 View 弹出回到所述 ViewController 时,UITabBar 消失

标签 ios objective-c uiviewcontroller uitabbar

我在 UIViewController 上有一个 UITabBar,它是从 Interface Builder 附加的,它工作正常,直到我有一个按钮将另一个 ViewController 推到屏幕上(例如:登录屏幕)通过 NavigationController。

弹出另一个ViewController后,画面回到原来的ViewController,但是TabBar消失了。我怎样才能解决这个问题?谢谢。

最佳答案

-(void)viewWillAppear:(BOOL)animated{

  [self.tabBarController.tabBar setHidden:NO];
}

在弹出的 Controller 中使用它

关于ios - 当 NavigationController 将 View 弹出回到所述 ViewController 时,UITabBar 消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34940504/

相关文章:

iphone - 没有服务器的 iOS 在线游戏?

ios - 自动旋转在 iOS 7 中不起作用,在 iOS 6 中工作正常

iphone - 如何在 subview 中添加 AVQueuePlayer 以显示 View

ios - 切换播放/暂停按钮循环播放

ios - 如何在 UICollectionView 上方添加搜索栏?

ios - iPhone 的 UIViewController 大小不正确

ios - 将多个 UIButton 组合成一个按钮

ios - 从字典的 NSMutableArray 获取字典

ios - 我必须调用 api 来获取 2000 个项目,它正在卡住应用程序,我必须在 tableview 中显示这些数据

iphone - 从上次打开的 UIViewController 打开应用程序