In my app, I want two modes that the user can choose from, using a tab bar controller. Buy view and Sell view. But in sell view and in buy view, there are several views each. “List of offers”, “offer details”, “make offer”, etc.
I was thinking of changing the view belonging to the “sell view”-tab on button clicks, but that seems wrong.
What is the correct way to handle this? Should the “buy” and “sell” tabs each be linked to a view, which in turn contains an array of the several subviews list, details, make offer, etc.?
And how do I access the “sell” view from my “offer list” view buttons?
Thx a bunch,
MrB
In the simpliest form, the following will work
Each tab gets it’s own UINavigation controller. Each navigation controller has it’s own collection of UIViewControllers.
When the user clicks on a tab they are presented with the corresponding nav controller. Each nav controller could show a UITableViewController that has a selection of sub view controllers to select.
the following is semi-psuedo code.. fyi