Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

maximum number of tabs for UITabBarController without moreViewController

Short of actually creating a UITabBarController and performing the relevant experiment, does iOS have a programmatic way of getting the maximum number of tabs that could show up in the tabBarController, without a "more" tab?

This would be highly helpful for some cross-platform work I'm doing.

like image 414
William Jockusch Avatar asked Dec 05 '13 15:12

William Jockusch


People also ask

How do I add a tab bar to an item?

To add a tab, first drag a new View Controller object to the storybard. Next control-drag from the tab bar controller to new view controller and select view controllers under Relationship Segue . Your tab bar controller will update with a new tab.

What is UITabBarController?

A container view controller that manages a multiselection interface, where the selection determines which child view controller to display.


1 Answers

The most is 5 (on an iPhone, 8 on an iPad). When you add a sixth you get the 1st four plus a More tab with the other two. This can't be changed using a standard UITabBarController.

Search github or other resources. There may be drop in replacement classes that will let you have more tabs shown at once.

like image 136
rmaddy Avatar answered Oct 29 '22 17:10

rmaddy