iOS应用间相互跳转

一、通过导航控制器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 ];//返回上一个界面
原文地址:https://www.cnblogs.com/xsphehe/p/6293934.html