view switching

Discussion in 'iOS Programming' started by henktade, Feb 14, 2009.

  1. macrumors newbie

    Joined:
    Jan 30, 2009
    #1
    hello guys,

    I am beginner for xcode and objective C programing.

    I am trying to build Switching between two controllers like TabBarController and NavigationController. what do I do to complitely remove one view and use the whole screen for another view?

    rgds,
     
  2. thread starter macrumors newbie

    Joined:
    Jan 30, 2009
    #2
    cobine tabbarcontroller with navigation controller

    I was able to impliment tab bar controller. and I want to switch to navigationcontroller with a button action from one of the view of the TabBarController.

    pls comment something.
    I couldn't get that much help for the follwing link:
    http://developer.apple.com/iphone/l...1.html#//apple_ref/doc/uid/TP40007457-CH8-SW1

    the following is the only code I have in the appDelegate. each view of the tabBarController is loded form independent xib files. In which file and what code I should put to load a nivgationController.

    #import "UntitledAppDelegate.h"

    @implementation UntitledAppDelegate

    @synthesize window;
    @synthesize rootController;


    - (void)applicationDidFinishLaunching:(UIApplication *)application
    {
    // Override point for customization after application launch
    [window addSubview:rootController.view];
    [window makeKeyAndVisible];
    }

    - (void)dealloc
    {
    [rootController release];
    [window release];
    [super dealloc];
    }


    @end
     
  3. thread starter macrumors newbie

    Joined:
    Jan 30, 2009
    #3
    combining tabBarController and navigationController

    guys, pls say some thing.:confused::confused:
     

Share This Page