开发者

iphone sdk: How do i hide the tabBar in my UITabBarController?

开发者 https://www.devze.com 2023-01-18 06:25 出处:网络
My application consists out of a tabbarcontroller and inside i got multiple 开发者_开发问答navigationControllers. Now i want to hide the bottom bar of the tabbarcontroller from the start because the b

My application consists out of a tabbarcontroller and inside i got multiple 开发者_开发问答navigationControllers. Now i want to hide the bottom bar of the tabbarcontroller from the start because the buttons on the bottom bar lead to features inside the application which are just not ready yet so i dont't want the user to see them. How do i do this? Thanks in advance!


A couple of options:

  • Set hidesBottomBarWhenPushed=YES on one of the controllers in your navigation controller. I'm not sure if this works on the root view controller of a navigation controller.
  • Hide the tab bar items by changing UITabBarController.viewControllers. I'm not sure if it lets you have a tab bar with only one tab, but it ought to.
  • Set the tab bar controller's delegate (see UITabBarControllerDelegate). In – tabBarController:shouldSelectViewController:, return NO if it hasn't been implemented yet.
0

精彩评论

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