I have a UIViewController that I’m using as a information page. How would I go about getting back to the last UIViewController visited from the information page?
- (IBAction)back:(id)sender
{
TennisMatch4ViewController *switcher = [[TennisMatch4ViewController alloc] initWithNibName:nil bundle:nil];
switcher.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:switcher animated:YES];
}
All you have to do is call:
This will remove the current view and go back to the one before the current.