cuốn sách gpt4 ai đã làm

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

In lại Tác giả: Walker 123 更新时间:2023-11-28 21:30:02 25 4
mua khóa gpt4 Nike

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

Tôi muốn ở trong firstVC 上模态显示 secondVC,但是当我这样做时,firstVC 变成黑色。

Cảm ơn

câu trả lời hay nhất

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

UIModalPresentationOverFullScreen hoặc UIModalPresentationOverCurrentContext 将在第一个 VC 的顶部提供第二个 VC 的内容的效果。

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

25 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress