PDA

View Full Version : view switching




henktade
Feb 14, 2009, 06:50 AM
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,



henktade
Feb 16, 2009, 05:36 PM
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/library/featuredarticles/ViewControllerPGforiPhoneOS/CombiningToolbarandNavigationControllers/chapter_9_section_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

henktade
Feb 17, 2009, 01:10 AM
guys, pls say some thing.:confused::confused: