Tabbars

Discussion in 'iOS Programming' started by iphoneSDKid, Dec 24, 2009.

  1. iphoneSDKid macrumors newbie

    Joined:
    Dec 23, 2009
    #1
    How do i include more than 4 tabs in a tabbar? Whenever i do now the forth tab becomes a tab saying "More". Is there any way for the tabbar to show all 5 tabs?
     
  2. KoolStar macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #2
    The tabbar delegate automatically creates the more tab with 5 or more tabs.
     
  3. iphoneSDKid thread starter macrumors newbie

    Joined:
    Dec 23, 2009
  4. KoolStar macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #4
    What you would have to do is override the delegate for the 5th button that becomes the more, and reconnect it to a different view programatically.
     
  5. iphoneSDKid thread starter macrumors newbie

    Joined:
    Dec 23, 2009
  6. KoolStar macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #6
    You have to modify the array that contains the views programmatically then change the final member of the array to the view you want to display.
     
  7. iphoneSDKid thread starter macrumors newbie

    Joined:
    Dec 23, 2009

Share This Page