Newbie: UINavigationController is pulling me back from further learning :(
- by nithin
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?