Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- App Delegate (did finish launching)
- self.welcomeViewController = [[APPWelcomeViewController alloc] init];
- self.homeViewController = [[APPHomeViewController alloc] initWithNibName:@"APPHomeViewController" bundle:nil];
- self.navController = [[UINavigationController alloc] initWithRootViewController:self.welcomeViewController];
- self.navController.navigationBarHidden = YES;
- self.window.rootViewController = self.navController;
- // Push the homeViewController onto the navController
- [self.navController pushViewController:self.homeViewController animated:YES];
- // Log the user out
- [User logOut];
- // Then we need to remove the Settings Modal View Conrtoller
- [self.presentingViewController dismissModalViewControllerAnimated:YES];
- // Then we need to take user back to welcomeViewController
- [self.navigationController pushViewController:welcomeViewController animated:YES];
- // Take me back to the root navigation view controller (APPWelcomeViewController)
- [self.navigationController popToRootViewControllerAnimated:YES];
Add Comment
Please, Sign In to add comment