issues
search
imzyf
/
ios-swift-learning-notes
📝 iOS Swift Learning Notes - see Issues
MIT License
0
stars
0
forks
source link
controller 页面切换方式
#59
Open
imzyf
opened
6 years ago
imzyf
commented
6 years ago
http://www.jianshu.com/p/ceaf978f9dfe
模态跳转(Modal)
presentViewController
两者之间通过delegate实现交互
控制器的中的只读属性:presentedViewController和presentingViewController,他们分别就是被present的控制器和正在presenting的控制器。
从屏幕的最底部往上钻
默认他的实现过程是移除跳转之前的控制器的view,并将新的控制器的view展示,但跳转之前的控制器并没有被释放,而是被强引用这的。区别于导航控制器的push。
通过 dismissViewControllerAnimated 来返回前一个界面的。
http://www.jianshu.com/p/ceaf978f9dfe
模态跳转(Modal)