Newbie: UINavigationController is pulling me back from further learning :(

Posted by nithin on Stack Overflow See other posts from Stack Overflow or by nithin
Published on 2010-06-01T12:28:16Z Indexed on 2010/06/01 12:33 UTC
Read the original article Hit count: 377

I have created a window-based application and my problem is I am unable to create UINavigationController on the go. InFact I don't know how to do that.

My AppDelegeate - (void)applicationDidFinishLaunching:(UIApplication *)application {

// Override point for customization after application launch
[window addSubview:logInView.view];
[window makeKeyAndVisible];

}

here the logInView is an object of

@interface LogInViewController : UIViewController { IBOutlet UITextField *usernameField; IBOutlet UITextField *passwordField; IBOutlet UIButton *logInButton;

}

-(IBAction) logInClick:(id) sender;

from the click action of this loginviewcontroller It should be showing the home screen with navigation controller. and I have to add many subviews. My question is where should I init the UINavigationController and where could I write the codes for adding subviews? how to map it with interfacebuilder?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c