gpt4 book ai didi

ios - 如何完全着色 UIPopoverPresentationController 背景颜色?

转载 作者:IT王子 更新时间:2023-10-29 08:19:44 26 4
gpt4 key购买 nike

我正在为一个应用程序使用昼夜模式。问题是,当仅设置 View 的背景颜色然后将其用作“呈现为弹出窗口”时,几乎没有白色伪影(参见图片)

有没有简单的方法来解决这个问题?我是否必须编写自己的 UIView?

enter image description here

最佳答案

您可以设置 UIPopoverPresentationController 的 backgroundColor。如果这还不够,您将必须自定义弹出窗口的 UIPopoverBackgroundView。 .这使您可以控制整个弹出窗口背景,包括小三角形。

关于ios - 如何完全着色 UIPopoverPresentationController 背景颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31906070/

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