Search code examples
iphonemultiple-views

iPhone Development - Complex application using multiple views/xib/nib


I'm new to iPhone development, and multiple views (xib or nib) are really confusing me. This is what i'm trying to achieve...

  1. View with Tab Bar (Tab 1, Tab 2, Tab 3)
  2. Tab 2 View (Navigation Controller) 2.1 Selecting Table Row will show a View with cell details 2.2 Add button on the navigation bar will show a series of view interfaces to get different type of information (e.g. Location Information, Personal Information, etc) - Need this to be sequential, can't use control segment for this. Once information is successfully gathered, create a new cell in Tab 2 View Table, Save related information to a custom structure, and show a completion page with 2 options (Add another, View added item - readonly view)

I'm confused about how to handle these multiple views (both linking them together, and communicating information back and forth). Will all these be handled by my application delegate class or i can/should use multiple delegate classes? Either way can you point me in the right direction - possibly some sample application or tutorial explaining how to handle situation like this or more complex.

Any help in this regard will be highly appreciated.


I have seen both TheElements and SeismicXML examples.

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

In my case, I have a UITabBarController, one of the Tab shows a UINavigationController with (+) on the top right corner or Navigation Bar. Now (+) will open an interface for user input and that input will be used to store the data (say in sql), and create a new Table Cell in UITableView embedded in UINavigationController. Now, the interface that will open using (+) will take user input following a sequence of steps (like Main > Step 1 > Step 2> Complete). Each step will show a separate view. I'm getting hard time trying to design this model. Or, maybe I'm not used to programming in Cocoa/iPhone and I'm not looking straight. What other options do I have - when it comes to taking user input involving 20-30 fields (Text, List, Date, Image e.t.c.). Can you provide some input regarding this.

Thanks for your help.


Solution

  • Perhaps this Google Books link can help you in creation of multiview applications.