美文网首页
iOS 页面跳转方法总结

iOS 页面跳转方法总结

作者: 小小Q吖 | 来源:发表于2016-06-18 20:30 被阅读280次

尝试列车所以得页面跳转方法 ,有疏漏的欢迎补充。
1.UINavigationController - push pup(常用)

在指定的myViewController中,可调用
[self.navigationController pushViewController:self. animated:YES];来完成页面跳转

同样,在跳转完成后的页面中 ,可以调用
[self.navigationController popViewControllerAnimated:YES];
来回到上一个页面

3.(Model)UIViewController - presertView
UIViewController或者子类的方法中调用
[self presentViewController:self.secondVC animated:YES completion:nil];
默认从上至下弹出一个VC来展示
[self dismissViewControllerAnimated:YES completion:nil];
关闭弹出的VC

相关文章

网友评论

      本文标题:iOS 页面跳转方法总结

      本文链接:https://www.haomeiwen.com/subject/rpxbdttx.html