切换方式一:xib跳转
在ViewController1中:
1、跳转至ViewController2
ViewController2 *viewController2 = [[ViewController2alloc]init];
[self presentModalViewController:secondViewanimated:YES];
2、从ViewController2返回至ViewController1:
- (IBAction)backOff:(id)sender
{
[self dismissModalViewControllerAnimated:YES];
}