当前位置: 代码网 > it编程>App开发>苹果IOS > iOS overFullScreen与fullScreen区别分析

iOS overFullScreen与fullScreen区别分析

2024年05月15日 苹果IOS 我要评论
overfullscreen与fullscreen区别overfullscreenthe views beneath the presented content are not removed fro

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的资料请关注代码网其它相关文章!

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2026  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com