iphone - Is this a sensible app design? -
After a lot of reading and many tutorials, I am now trying to write my first iPhone app, but I'm already starting to run into complexities, so
Want to go back to the basics and ask if I've got a fundamental UI design:
- Main window. TabBarController has 3 navigation controllers, each has a subclassed UIViewController (says VC1, VC2 and VC3)
So far, straightforward and covered by many tutorials. But now my own thinking ends and my uncertainty increases:
- With one level of navigation (drill down) for one of those 3 views, for a detailed view, A list of data should be displayed. So why not TabBarController has 2 UIViewControllers and 1 UITableViewController, you can ask me exactly because:
- I also have 2 " Type "(good comparison will be" email in "and" email out ")
- User must also be able to filter the list (for example, new, starred , Xyz, etc.)
Therefore, I have decided that I need a toolbar.
- To load a settings page, there are controls with 2 part segment to switch between the data type and a button in the toolbar.
Therefore VC2 loads VC2
- A sub-class UITableViewController (to display my list data)
- P> A subclassed UIViewController (to display a settings page)
-
I definitely want to customize the visual content according to the selection in toolbar
Is all this sound appropriate or do I have a flaw or a better way to meet my needs? is?
I do not want to go into detail about the real problem here, which I am now doing. That is, my basic architecture is handling, there is a different question. First of all, I should know that my original thinking is correct;)
Thank you in advance.
It's my thinking that the design looks great, just a few things I can do differently.
- To switch between 2 different types of data
I do not know that this is what you want but do it 1 UITableViewController
and 2 different datasets can define, then 2 different UITableViewController
s.
- Settings button
Design and load a completely new UIViewController
for the settings page Instead you can just pop up a UIPickerView
. Then you call [tableview reloadData]
Comments
Post a Comment