Link to home
Start Free TrialLog in
Avatar of Philippe Renaud
Philippe RenaudFlag for Canada

asked on

UITabBar Item changing Detail side of SplitViewController ?

Hello,

I have a UITabBar inside the DetailViewController.Xib (Wich is the Right Pane of the split view controller)

I would like when I press an item that the Detail switch to another xib view controller. The idea then is that I would have in that one a back button to go back to detail view original.

I need to do that because I like the badge that we can update on uiBarItem. So the user knows "Ok I ave 4 items in my cart" so he presses the item then the detail view would change to another window.

any examples?
ASKER CERTIFIED SOLUTION
Avatar of darbid73
darbid73
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Philippe Renaud

ASKER

Ok alright. Yes my tab Bar is on Detail side so no worries here. I also have a ToolBar at the top (not a Navigation Controller)

When you say  "I then add them to this view"
I already have a Table view between those two but if I youch the tabBar Item at the buttom you are saying that you "add it to this view?"  

By this do yo mean you do a kind of pushViewController or something ?
or do you hide your control then when he touches you hidden = NO and the old one you HIDDEN = Yes??   im not sure what to do ..


For the other question, Yes the BACK would do the same thing as a back navigation but like I said I do not have a Navigation view controller. The idea is just to go back to the other main Detail View... I am gonna see that Tutorial. Meanwhile can you hlep with first statement ?  :) thank you very much
The things is that you have to do some serious work to have multiple detail view controllers.  For example you need your detail view controller to have a tool bar so that a button can be added to the top in portrait mode.

So I have 1 detail view and that has only a tool bar at the top and tab bar at the bottom sometimes.  Then I simple build all my other views.  I then use the add view and add them to this detail view controller under the toolbar and tab bar.  

I do not use the navigation or push.  The problem you are going to have is once again with the tool bar and that button in portrait mode.
What about this... :

I supress the toolbar at the buttom. I add into the detail view pane a Navigation Controller .. then I will have my bar at the top (wich I think I can add buttons to it like a regular one.. ?) Then If I want to view another "view" I simply pushViewController to the navigation Controller and I will have my Back button also...

I wont have the badge anymore at the buttom but I guess I can arrang that by having a label that has a number increasing...something like that.


What do you think ? Less problem for pushing the views?
Have a look at the tutorial then. That should get you started and talk about all the pitfalls.
thanks