Scrolling tab bars

nodoidnodoid GBMember, Beta ✭✭✭

Hi,

Is it possible to fix the size of a tab bar item, but for the the tab bar itself to scroll left and right?

For example

+-----------------------+
|      |      |      |  | 
|  t1  |  t2  |  t3  | t|
+-----------------------+

the tab items are the same size, but tab 4 is only part on screen, so the bar scrolls when required.

Thanks

Paul

Posts

  • cjgalianacjgaliana GBMember, University

    Hi nodoid,

    I've got the same question. Did you resolved this scrolling tab bar problem? How?

    Thanks

  • NeelamPrajapatiNeelamPrajapati USMember ✭✭

    same que.any update on this?

  • TedRogersTedRogers USMember ✭✭✭✭

    @NeelamPrajapati You don't typically do this on iOS. The standard approach would be to use a more button "...".

    Alternatively, you can provide a difference resource for different sizes.

    I tried dropping a UITabBar and a UIToolbar in a UIScrollView but they behaved very strangely.

  • TedRogersTedRogers USMember ✭✭✭✭

    @NeelamPrajapati I couldn't let this go. I have attached a project that includes a scrolling UITabBar. Pretty sure this is not a good idea but...

    The strangeness I was experiencing was due to the view controller have "Adjust Scroll View Insets" enabled. Arghh...

Sign In or Register to comment.