gpt4 book ai didi

ios - 在另一个 UIViewController 之上呈现一个模糊的 UIViewController

转载 作者:行者123 更新时间:2023-11-28 21:30:02 25 4
gpt4 key购买 nike

我有 2 个 VC - firstVCsecondVCsecondVC 的 View 颜色是clear color 并且它有一个UIVisualEffect view with dark blur.

我想在 firstVC 上模态显示 secondVC,但是当我这样做时,firstVC 变成黑色。

谢谢

最佳答案

您需要在 presented (secondVC) Controller 上适本地设置 modalPresentationStyle

UIModalPresentationOverFullScreenUIModalPresentationOverCurrentContext 将在第一个 VC 的顶部提供第二个 VC 的内容的效果。

关于ios - 在另一个 UIViewController 之上呈现一个模糊的 UIViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36500528/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com