首页 > 学院 > 开发设计 > 正文

多视图控制器跳转方法

2019-11-14 20:22:11
字体:
来源:转载
供稿:网友

1.Modal:

打开:PResentViewController

关闭:dismissViewController

 

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

打开:pushViewController

关闭:popViewController

 

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

Identifier在storyboard里设置。


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表