Hide item in Tabbar (Storyboard)

Discussion in 'iOS Programming' started by marcussombra, Jul 24, 2015.

  1. marcussombra macrumors newbie

    marcussombra

    Joined:
    Jul 24, 2015
    #1
    I have a TabBar in StoryBoard.
    How do I hide the first ITEM tabbar this?

    Thanks!
     
  2. xStep macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #2
    Programmatically. There isn't a hide option. You have to set them even if you are 'hiding' one by not including it in the list. How depends on if you're using a UITabBar or a UITabBarController. Look for the set method in the appropriate class.

    Code:
    - (void)setItems:(NSArray *)items animated:(BOOL)animated
    
    - (void)setViewControllers:(NSArray *)viewControllers animated:(BOOL)animated
    
     
  3. bjet767 macrumors 6502a

    Joined:
    Oct 2, 2010
    #3
    What do you mean by "hide?"

    If you are asking how to change the name of the first view then that is another question. It can be done programmatically or via the tool bar on the right side "Attribute Inspector."
     

Share This Page