iOS overFullScreen与fullScreen区别分析
overFullScreen与fullScreen区别
overFullScreen
The views beneath the presented content are not removed from the view hierarchy when the presentation finishes. So if the presented view controller does not fill the screen with opaque content, the underlying content shows through.
当显示结束时,显示内容下面的视图不会从视图层次结构中删除。因此,如果呈现的视图控制器没有用不透明的内容填充屏幕,底层内容就会显示出来。
fullScreen
The views belonging to the presenting view controller are removed after the presentation completes.
属于呈现视图控制器的视图在呈现完成后被移除。
详见Xcode->Window->Developer Documentation。
总结
如果需要弹出半透明视图使用overFullScreen,但是由于当显示结束时,显示内容下面的视图不会从视图层次结构中删除,所以页面消失时下面的视图不会出发viewWillAppear等方法。
使用fullScreen,在页面消失会触发下面的视图的viewWillAppear等方法,但是呈现视图控制器的视图在呈现完成后被移除实现半透明时透明部分直接黑屏展示。
🐟与熊掌不可兼得😂😂😂。
以上就是iOS overFullScreen与fullScreen区别分析的详细内容,更多关于iOS overFullScreen fullScreen的资料请关注脚本之家其它相关文章!
相关文章
IOS开发之tableView点击行跳转并带有“显示”更多功能
这篇文章给大家介绍通过点击城市中的tableView跳转到旅游景点的tableView,下面会有“显示”更多的功能,代码简单易懂,对ios点击tableview跳转相关知识感兴趣的朋友一起学习吧2016-03-03
iOS 生成plist文件,在项目中代码创建plist的实例
下面小编就为大家分享一篇iOS 生成plist文件,在项目中代码创建plist的实例,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧2018-02-02


最新评论