IPhone SDK: how to switch from the login screen to the navigation interface?

I am starting out in developing the iPhone and following some tutorials, but please tell me if I go in the wrong direction. I implemented my own UInViewController and the look of the login screen (with its xib).

What I would like to do is that after clicking the login button, the RootViewController.xib file is displayed, which includes the Xcode default navigation application template.

Is it possible? How?

Many thanks for your help.

+3
source share
1 answer

AppDelegate, keyWindow, navigationController keyWindow.

- (void) applicationDidFinishLaunching: (UIApplication*) application {
    [_window addSubview: [_loginViewController view]];
    [_window makeKeyAndVisible];
}

// This method is on AppDelegate   
- (void) loginComplete {
    [[_loginViewController view] removeFromSuperview];
    [_window addSubview: [_navigationController view]];
}
+4

Source: https://habr.com/ru/post/1746348/


All Articles