将VC作为VC的全屏展示,该VC的模型式风格是自动的

发布于 2025-01-17 20:56:40 字数 153 浏览 1 评论 0原文

IM试图以ModalPresentationStyle为.fullscreen提出一个新的视图控制器,该视图控制器的示意图是.automatic。

我为.fullscreen添加了新的VC的模态式风格,但它仅与旧VC匹配。我如何实现同样的事情。我正在使用Swift 5.提前感谢

Im trying to present a new view controller with modalPresentationStyle as .fullscreen from a view controller whose modalPresentationStyle is .automatic.

I added the modalPresentationStyle for the new VC as .fullscreen.But its coming as matching to the old VC only. How can I achieve the same. Im using swift 5.Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云之铃。 2025-01-24 20:56:40

这应该可以做到...

vc.modalPresentationStyle = .overFullScreen

使用 .overFullScreen 而不是 .fullScreen

This should do it...

vc.modalPresentationStyle = .overFullScreen

use .overFullScreen instead of .fullScreen

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文