查看: 35|回复: 0

[教程] iOS overFullScreen与fullScreen区别分析

[复制链接]

1

主题

0

回帖

0

积分

积极分子

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2012-7-3
发表于 2023-11-9 11:11:21 | 显示全部楼层 |阅读模式

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关键字static extern const使用示例详解
  • iOS报Multiple commands produceMultiple错误的解决方案
  • iOS开发输入自动填充UITextField背景色
  • iOS小数取整的方法(ceil floor round)示例
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部