Sliding UITabBarItems in a UITabBarController

I have a UITabBarController as my rootController with 8 UITabBarItems . and I want to show only 4 UITabBarItems on my screen. By default, all my other tab bar items are displayed in a small tabBarItem called Advanced, and you can choose another one. But I saw some applications that implement a rolling UITabBarItems with a slide icon instead of a More icon.

How can I show only 4 points, and I am a TabBarItems slide , and so that I can select other tab elements?

~ Something like that ~

enter image description here

And then I can move on to the next 4 sets by dragging and dropping

enter image description here

It would be helpful if someone could point me in the right direction.

+3
source share
4 answers

There is a great github project that can help you ... check: https://github.com/iosdeveloper/InfiniTabBar

+4
source

This is currently not a built-in option for the UITabBarContoller .

One way to solve the problem is to add UIGestureRecognizer to tabBar.view and programmatically configure which 4 options are available on the screen. You can add animation to make it smooth or have a slight bounce as you move it.

+2
source

IPhone users are usually very picky and tied to the Apple UI Guides. Although you can pass an Apple test, you probably won’t be able to pass on to users (which means bad reviews and ratings). Therefore, I recommend that you review the structure of your tabs and use "...". Instead of shifting it ... You can always redefine the material in the code, but then they will not work with the InterfaceBuilder interface, and in the end you will have more than you expected.

If you have similar tabs, merge them and use perhaps a segmented control or something to visually distinguish them. Or use the central navigation screen in which you can put 9, possibly more icons in the grid ...

The first solution to your problem may not always be the best way. Well, this is very rare in fact ...

+2
source

To do this, you need to write a custom control. I wrote one to display a horizontal menu. You can probably change this to suit your needs. http://blog.mugunthkumar.com/coding/ios-control-mkhorizmenu/

0
source

All Articles