views:

151

answers:

0

Hi

I want to make the login app with the complicated views.

Requirement flows as below:

Login Page --> Menu Page --> Detail Page with Tab Control. --> Navigation Page

Here the 'Detail Page' is again a combination of two views. Navigation View and Tab View.

i.e. 'Detail Page' will have a Navigation Control (Navigation Bar) on top and rest of the control is a Tab Control so that the user can switch between tabs at any point. If a user presses 'Next' from the navigation control, they will go to new page and can come back again to the 'Tab View' by pressing back from the next page.

Also I have lot more tabs which don't fit into a single tab view so I want the last tab to be like more option and will go to different views (either custom of table view).

Currently I have developed the Window base application as under.

  1. Main Controller (MainSwitcherViewController) which is got initialized from the delegate.
  2. This main controller has a reference of multiple other UIViewsController

    For example:

    • LoginViewController which is UIViewController.
    • MenuViewController which is UIViewController.
  3. Initially I show the LoginViewController.

  4. On successful login I show the MenuViewController.
  5. And from the MenuViewController on any action (selection of Menu - currently added as UIButton), I am opening the NEW View but instead of New View (UIViewController) I want to go in Navigation View and Tab View combination View as explained above.

Here is my question:

  1. Is my approach of designing the screen/views is correct or do I need to take another approach?
  2. How to switch between UIViewController to TabViewController or NavigationViewController?
  3. How to create combined Controller having Navigation Control on Top and on bottom TabBarViewControl such a way that for each tab Navigation Control is visible (shared).

I am a beginner at iPhone app development,

Please give me some pointers or links having similar kinds of examples.

Thanks in advance.