In my app i would like to create a tutorial to show how to use the app.
For that i presented a viewcontroller using navcontroller.presentViewController
and it has a form appearance. I would like to change the viewcontroller
to an other but i don't know how to.
How can this be done?
Thanks in advance!
Zoli
EDIT: What i want to achieve
i'm on the mainViewController
With navcontroller.presentViewController
I present the welcomeScreenViewController1
Then i want to move from welcomeScreenViewController1
to welcomeScreenViewController2
without having to dismiss welcomeScreenViewController1
first. The best would be if in that modal view, i could push welcomeScreenViewController2
onto welcomeScreenViewController1
.
I hope that helps
Your modal screen needs to be a navigation controller. So you need to do :
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:welcomeScreenViewController1];
navController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentViewController:navController animated:YES completion:nil];
Then, you should be able to push your welcomeViewController2 in your navigation controller.