iOS页面跳转的几种方法
第一种 push、pop
[self.navigationController pushViewController: animated: ];
//通过navigation abr 进行跳转
[self.navigationController popViewController: animated: ];
//子视图返回上一个视图
//有多次跳转发生并希望返回根视图控制器
[ self .navigationController popToRootViewControllerAnimated: YES ];
//返回根控制器,即最开始的页面
第二种 present dismiss
UIViewController *control = [[UIViewController alloc] init];
[self presentModalViewController:control animated:YES];
[control release];
//描述:通过事件进行跳转
[self dismissModalViewControllerAnimated:YES];
//描述:通过事件进行返回。
第三种
[self.view.window addSubview:otherview];
[self.view removeFromSuperview]