uiviewcontroller - iPhone Application - combination of UINavigationController and UITabBarController -


I want to create a login app with complex ideas.

Required flow given below:

  login page - & gt; Menu page - & gt; Extension page with tab control - & gt; Navigation page  

Here is the combination of two views of the 'expansion page' navigation view and tab view

i.e. In the 'detail page' there will be a navigation control at the top and the remaining 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 the new page and press back from the next page to return to 'tab view'.

I have too many tabs that do not fit in a tabbed view, so I would prefer the last tab more options and go to different ideas (customs in the table view).

Currently I have developed the window base application

  1. The main controller (MainView UI controller) has been initiated by the representative.
  2. This main controller has a reference to several other UVVs controllers

    For example:

    • Log in Visual Controller UIViewController is
    • MenuViewController which is UIViewController.
  3. Initially I show the LoginViewController.

  4. On the successful login, I show the menuview controller.
  5. And from any menu view controller (menu selection - currently added as UIButton) on any action, I'm opening new view b, instead of the new view (UIViewController) I see navigation view and tabs Want to add as you see the combination described above.

Here's my question:

  1. Is my view of designing a screen / scene correct or do I need to take another approach?
  2. How is the switch between UIViewController for the tabviewer controller or navigation view controller?
  3. How to create a composite controller Navigation control on the top and bottom tabbyviv controls in such a way that the navigation control for each tab is visible (shared).

I am beginning to start an iPhone app development,

Please give me some pointers or similar type of links.

Thank you in advance

OK, first your way is fine. You can have a UITabBarController in the same class as a UINavigationController. Simply create a tab bar controller and also create a navigation controller in the same category. The user will be able to use both from within that view.

To do this, with tab in the bar:

  UITabBarController * mainTabBar = [[UITabBarController alloc] in this];  

Then see the views of that tab bar controller, in one of those UIViewController, add a navigation controller:

  UIViewController * mainViewController = [[MainViewController alloc] Init]; MainViewController.title = @ "Welcome"; UINavigationController * Main ViewNavController = [[UINavigationController alloc] init]; [Main ViewNavController pushViewController: Animated Main View Controller: No];  

Then just add the tab bar to the scene with the new bar:

  mainTabBar.viewControllers = [NSArray mainViewNavController, zero];  

Remember to add the navigation controller to the tab bar controller only, if you add a class normally, then it will not have the Navigation Controller features.

Hope it helps, if not, I will be happy to clean anything.


Comments