Need 6 tabs in tab bar [duplicate] - iphone

This question already has answers here:
How to Identify tab bar items?
(3 answers)
Closed 7 years ago.
I am implementing a tab bar based application and i need 6 tabs in the tab bar,but the tab bar is displaying only 4 tabs and in Fifth tab it is displaying More with 5th tab and 6th tab in table view.
Can i have 6 tabs in tab bar without More tab?

Maximum is 5 Tabs in a tabbar. This is because when there was more than 5 tab, they would be too small and for people with thicker fingers it would be difficult to hit the wanted tab.
If you really want, you can write your own tabbar-controller that allows 6 or even more tabs, but you should not do that. The chance is high, apple will reject your app because it doesn't meet apples design-rules. And I think it is good, that apple rejects such apps!

You will have to create your custom tab bar controller for that.

You can not have 6 tabs in tab bar without More tab. After adding 4 tabs, in Fifth tab it will display More with 5th tab and 6th tab and it is the characteristics of tab bar in iOS. You can try toolbar.

Yes you can do this thing but you need to use customview.
your tabbar works in back-ground and place a custom view at bottom in window and set delegate for it and add this view in main window.
then you will hit button at bottom and you can redirect event to appDelegate class by delegate.
where you can set your desired tab as by button hit.
i think you may get some ideas.

Related

iOS UITabBar - can I modify how many tabs are shown at once?

I'm interested if it is possible to modify the default behavior of UITabBar to display only 4 tabs total, with the 4th tab being ... More.
By default, tabbar displays up to 5 tabs with the last one being "... more", if tabbar holds more than 5 controllers. My designer expressed the idea that it may be easier for the user to navigate the app if we leave only 3 major controllers in the tab bar, with all "optional" content hidden in the more list.
Is there a default option or some tweak that I can apply to a UITabBar to change how many tabs it displays at once?
Similar to what Michael Henry suggested you can create the 4th tab as ...More but instead of using a UITableViewController why not re-draw the options at the bottom of the UITabBarController and show the next set of tabs with the first obviously being Previous...
With this methodology you'd likely have to keep track of what state your TabBar is in so that it properly influences which UIViewController is shown upon tapping a tab button on the second page of tabs.
I'm hitting this answer on an iPad or else I'd dump a code example. Sorry.

Is is possible to add a 5th tab bar button instead of "More" Button?

I'm working on an iphone application that has exactly 5 tab bar buttons.
I've created a custom tab bar and added 5 buttons to it, each with a separate view controller.
The buttons are showing fine, but the 5th view controller is not loading on 5th tab bar button press. This might be because the 5th button is supposed to be the "More" button. Is their some way to override it?
No the more button wil only show if you have more then 5 viewcontroller in the tabbarcontroller.
You can customize your tab bar to do so.
There're some exist ones, like the one below:
https://github.com/boctor/idev-recipes/tree/master/CustomTabBar
It works Excelent! And you'll see the screenshot that it use five tabs. :)
AS per apple human interface guidelines if you have more than 4 tabs last tab is displayed as more tab and you can not alter it

iPhone tab bar: change buttons at runtime - tab bar design guidelines

I'm developing an iOS 4 application.
I have a UITabController with a tab bar with four buttons. One of them it is called play.
When user taps on play button I need to change tab bars buttons: now it will have to buttons, one to turn back to previous screen and another one to stop.
My question is if I can do that or is there any design guideline that don't allow to do it?

iPhone Dev - "More" TabBarItem - how to change the title?

I'm using TabBarController and I have more than 10 View Controllers in it (that's why I can see "More" tab, where I can access the rest of the views). My question is:
Is there any way to change the title of the "More" tab bar? (I know how to change the title of the view:
tabBarController.moreNavigationController.navigationBar.topItem.title = #"SuperMore";
but I would like to change the text on the bar itself. Is it possible, anyway? ;-)
Big thanks in adv.
Charles
There is no way to change this using the API. If you really want to change it, just create your own icon with your own text for the 5th tab bar item. You will then implement your own Table View Controller for the tab which will duplicate the default "More" tab. It will be difficult to re-implement if you wish to include reordering/customization of the tabs, but if you are fine with locking them in, it should not be too difficult.

UITabBarController - more than 20 views

I am using a tab bar (UITabBarController) on my app and I wish to have more than 20 different views to choose from.
If there are more than 5, "More" menu appears. I can access any of my views from "More" menu but I have problems with customizing my TabBar with "Configure" (Edit) navigation bar. I can see only 20 first view icons and I can't scroll the view any direction. Icon with numbers 21 or higher are unavailable in "Configure" (Edit) navigation bar
Is there a way to scroll up and down (or left and right) to be able to customize TabBar with all of my view icons? Is there the other way to customize "Configure" (Edit) navigation bar to get access to all view icons?
Looks like there is no solution for this :( except creating your own UITabBarController.
This is a limitation of the controller provided by Apple, but you can work around this problem as follows:
Catches the action of the edit button and replace it with your own action that aims to display a custom screen that plays differently the sort action.
I have done this way in my applications, when I had the need.