When I launch my app I'm presented with the root view controller (currently just a picture) which then pops up a modal view controller for the walk through. Once the user finishes the walk through, I want to dismiss the modal view controller and have the user be instantly presented with the main view controller for the app (rather than the root).
My issue is I can't figure out how to go about doing this. Currently all I can do is dismiss the modal back to the root, then switch the root view controller to the main one. This makes for a very ugly transition.
//WalkthroughViewController.m
-(void)completeWalkthrough:(UIButton *)sender {
// What can I do here to switch the RootViewController
// to display MainViewController ?
[self dismissViewControllerAnimated:YES completion:nil];
}
Any help is appreciated. Thank you.