1.判断self.viewControllers.count,避免一开始就隐藏了

2.在导航控制器中统一设置"返回"形式
self.topViewController.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:nil action:nil];
1.判断self.viewControllers.count,避免一开始就隐藏了
2.在导航控制器中统一设置"返回"形式
self.topViewController.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:nil action:nil];
本文标题:oc中隐藏tabbar
本文链接:https://www.haomeiwen.com/subject/tfzfwttx.html
网友评论