多视图控制器跳转方法

1.Modal:

打开:presentViewController

关闭:dismissViewController

 

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

打开:pushViewController

关闭:popViewController

 

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

Identifier在storyboard里设置。

posted on 2014-06-26 17:13  馅饼在哪颗星  阅读(288)  评论(0编辑  收藏  举报

导航