多视图控制器跳转方法

1.Modal:

打开:presentViewController

关闭:dismissViewController

2.Push:需搭配NavigationController使用,采用压栈和出栈的方式

打开:pushViewController

关闭:popViewController

3.Segue:以上两种方式都可以,如果在打开目标控制器前需要额外处理,可使用perfromSegueWithIdentifier方法

Identifier在storyboard里设置。

原文地址:https://www.cnblogs.com/litaowei/p/3810465.html