开发者

Hide UITabBarController?

开发者 https://www.devze.com 2022-12-26 03:05 出处:网络
I have root view with both tab bar and navigation bar visi开发者_如何学编程ble at the beginning. When the view is moved to the next level, I would like to hide the tab bars, and when the view is moved

I have root view with both tab bar and navigation bar visi开发者_如何学编程ble at the beginning. When the view is moved to the next level, I would like to hide the tab bars, and when the view is moved back, I would like the tab bar visible. Is there any way to do that?


If you're using a UINavigationController to do the pushing, you can use something along these lines.

[newController setHidesBottomBarWhenPushed:YES];
[self.navigationController push...newController animated:YES];
0

精彩评论

暂无评论...
验证码 换一张
取 消