一、通过导航控制器 UINavigationController 跳转
- [self.navigationController pushViewController: newController animated: YES]; //跳转到下一页面
- [self.navigationController popViewControllerAnimated: YES]; //返回上一页面
- [self.navigationController popToRootViewControllerAnimated: YES]; //多次跳转后,返回根控制器,即最开始的页面
二、直接跳转
- [self presentViewController: createView animated: YES completion: nil]; //跳转到下一页面
- [self dismissViewControllerAnimated: YES completion: nil]; //返回上一个界面
来源: