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

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?

Related

Toolbar in an iphone app

I'm currently developing an iphone app where I have one screen that includes a web view. I was wondering where to place the toolbar (back, forward, and refresh buttons) knowing that I have to keep the navigation bar for consistency reasons and there is the tab bar which is always showing in my app. I don't want to place the toolbar just under the navigation bar in order not to loose space for the content of the web page.
Can I include my toolbar controls (back, forward, and refresh buttons) in the navigation bar or by that I will by violating the iOS guidelines ? What is the best user experience here ?
Thanks in advance.
Best Regards,
Place your toolbar at the bottom of the screen. It wouldn't be a good user experience to have browser controls on the nav bar because it's easy to confuse nav bar "back" with browser "back", and generally there isn't enough rooom.
You'd be in good company if you did this - it's what the Facebook iPhone app does (and many others).
Note: the iPad Facebook app does put some browser controls on the RHS of the nav bar, because there's enough room.
You should use a toolbar, but set controller.hidesBottomBarWhenPushed = YES on the web view controller, so that your tab bar is not visible while in the web view.
You should probably also use https://github.com/samvermette/SVWebViewController and save yourself a lot of time ;)

iPhone app: navigate to tab bar scenario

I have an application with a maybe-strange navigation scenario. I'll try to explain:
1) first scene: select an available item from a list
1.1) once selected, you navigate to a tab view allowing you to view/edit the various attributes
2) if the desired item isn't available, you may create a new one (by selecting a "+" bar button) which navigates to an alternate scene
2.1) there may be multiple scenes required to create the item, all scenes are simply pushed on the stack to allow the user to go back, select different options, etc.
2.2) once all scenes have been displayed and all attributes have been collected, the new "item" will be created and saved.
2.3) now, I want to automatically act as though the user selected this item from the beginning, that is, I want to pop all previous views off the stack and navigate directly into the tabs (step 1.1).
Does this make sense? Easy to do? Is there a better way to go about this? I'm using xCode 4.2 with storyboards.
Any guidance would be appreciated.
If you want (+) button on TabBar you should subclass UITabBar: Fo ex. TabBarPlus and set this class in storyboard.
But easier place (+) button on navigation bar.
The max number of displaying tabsart is 5 for iphone and 8 for ipad. If the there > number of tabs the last is "More" tab thet displaing list of other tubs in tableview. I you want displaying more tabs on tabbar then you should subclass UITabBar :)
If you want by back button on naigation bar switching beetwing Views that references with TabBar buttons you must create stack in code and hide backbutton of navigationbar and use castom left button of navigationbar.
The other navigation can be easy done in storyboard

Need 6 tabs in tab bar [duplicate]

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.

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

Is there a way to implement four tabbed uitableviews that all have the same uinavigationbar

I am working on a mobile version for my company's web app. The structure of this application requires uitableviews with a tab bar on the bottom and a navigation bar up top to return to the previous view. As you drill down in the application the tab bar items change at each level allowing selection of different views pertaining to that specific level in the app. I need a way to implement this with a navigation bar on top that navigates back to the previous screen on every tab in said tab bar when a back button is clicked on any of the tabs.
for example: let's say i start out with an items tab and a simple about tab. When i click items it drills down to a new view called subitems and the tabs for this view are subitems, favorites, details, and notes. I want the navigation bar to go back to the previous screen when i click the back button on any one of these four tabs.
Is this at all possible? I can't seem to find anything related to this type of structuring within an app. any help/examples would be greatly appreciated.
I know that a negative answer always sounds bad, but I tried to do the same a few months ago and I could not find a way of doing it using the standard UITabBarController/UITabBar. Take also a look at this question/answer.
The good news is that it is not that difficult to implement from scratch a tab bar controller that can be pushed on a navigation stack. There are also several examples around, one is BCTabBarController. GtabBar is another example.
I actually found a way to do it you just have to implement the navigation bar's leftbarbuttonitem instead of the traditional back button. Then I just created a method that is invoked when the back button is pushed this updates the navigation stacks of all four views within the tab bar and sets the tab bar items accordingly to match with the previous views we are navigating back to. . . so long story short...it is possible.