How to make tab bar scrollable on iphone?

I have an Iphone application in which I had 10 tabs in the tab bar.

I do not want to add more button behavior to the tab bar here.

Instead, I need to make the tab bar scrollable .

Anyone have an idea or links to illustrate this?

Can someone lead me in the right direction?

+6
source share
3 answers

But you cannot use UITabbar . You need to create a custom UITabbar that will behave the same.

Here are some project links to help you more.

+9
source

Have you tried looking here? How to make horizontal scrollable UITabBar in iOS?

Although, and for this very reason, I am not writing a comment, I would not use scrollview as described in the accepted answer. Instead, I would go to uipickerview and rotate it 90 degrees using CGAffineTransformRotate. Let me know if this works.

0
source

1) define UIScrollview *scrollview
2) view drag and drop scroll
3) connect the instance and delegate to xib
4) set the scrollview frame larger so that it scrolls and is larger than the view size
5) add uitabbar as subview to scrollview

 [uitabar instance addsubview:scrollview]; 
0
source

Source: https://habr.com/ru/post/946074/


All Articles