I am building an iOS Application where there are 4 screen as - verify phone number,fb login, set your profile and home. Now what I need is that if a user have set her profile info and after clicking on next if he close the app. On the restarting of the app it should directly get navigated to the home screen and there should not be repetition of all the 3 screens again.
What happens is, the screen 1 ( verify phone no ) is shown for a short period of time and then home screen appears. I want home screen to appear immediately after the splash screen when I reopen the app.
I am using below code.
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; UINavigationController *mvc = [storyboard instantiateViewControllerWithIdentifier:@"Home"]; [self.window.rootViewController presentViewController:mvc animated:YES completion:nil];
Aucun commentaire:
Enregistrer un commentaire