IPhone development - a complex application using multiple views / xib / nib

I'm new to iPhone development, and a few views (xib or nib) really bother me. This is what I'm trying to achieve ...

  • View with the tab bar (tab 1, tab 2, tab 3)
  • Tab 2 View (navigation controller) 2.1. Selecting a row table displays a view with information about cell 2.2. The add button on the navigation panel displays a series of presentation interfaces for receiving various types of information (for example, location information, personal information, etc.). It is necessary that this be consistent, you cannot use the control segment for this. When the information is successfully collected, create a new cell in the table of tables Tab 2, save the associated information with a custom structure and show the completion page with two parameters (add another, view the added item - view only in view mode).

I am confused about how to handle these multiple views (both by linking them together and communicating information back and forth). Will all this be handled by my application delegation class or can I / should use multiple delegate classes? In any case, you can point me in the right direction - perhaps some kind of sample application or tutorial explaining how to deal with a situation like this or more complex.

Any help in this regard would be greatly appreciated.


I have seen examples of TheElements and SeismicXML.

TheElements example code gives a general idea of ​​how to use the UITabBarController and the UINavigationController , but this example does not discuss passing information from the Child Controller to the Parent.

In my case, I have a UITabBarController , one of the tabs shows a UINavigationController with (+) in the upper right corner or the navigation bar. Now (+) will open the interface for user input and this input will be used to store data (for example, in sql) and create a new table cell in the UITableView built into the UINavigationController . Now the interface that opens using (+) will be entered by the user in accordance with the sequence of steps (for example, Main> Step 1> Step 2> Complete). At each step, a separate view will be displayed. I find it difficult to develop this model. Or maybe I'm not used to programming in Cocoa / iPhone, and I'm not looking directly. What other options do I have - when it comes to user input with 20-30 fields (text, list, date, image etc). Can you provide some information about this.

Thank you for your help.

+7
iphone
source share
2 answers

Perhaps this Google Books link can help you build multi-user apps.

0
source share

For iPhone, you want to handle most views and switch between them using the appropriate view controllers. For your case, these will be UITabBarController and UINavigationController. In order to control them outside your own actions and to store data as you want, you probably need to examine your own subclasses of these controllers. Some good starting points are theses (which cover tab panels and table views) and SeismicXML (table views and navigation controllers).

Most of the actual link can be handled in Interface Builder, where you can create and compose all the contents of various tabs, but you will need to use your subclasses to provide data (especially in the case of a table view, where you will need to configure data for each cell).

Hope this helps
Jeff

0
source share

All Articles