I am new to storyboards. I have made up an application that has a login screen. Once the user logs in, his username and password are saved in NSUserDefaults. This is because when the user has to login only once after installing the application. Whenever the user opens the application again, the login page should not appear. I dont know how to achieve this in storyboards. An someone please guide me how to do this?
EDIT:
I have written the following code in didFinishLaunchingWithOptions
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
if ([defaults objectForKey:@"username"] && [defaults objectForKey:@"password"] && [defaults objectForKey:@"url"]) {
self.window.rootViewController = [self.window.rootViewController.storyboard instantiateViewControllerWithIdentifier:@"navigationview"];
}
else {
self.window.rootViewController = [self.window.rootViewController.storyboard instantiateViewControllerWithIdentifier:@"login"];
}
return YES;