有没有办法更改使用 UIPopoverViewController 加载的弹出视图的背景和默认框架?

发布于 2024-12-11 16:11:33 字数 335 浏览 5 评论 0原文

(1)尝试更改弹出框背景的框架颜色但没有发生...有什么方法可以更改它吗?

(2) 尝试删除弹出窗口的子层并替换为其他层,这能够删除默认框架,但应用程序在关闭弹出窗口时崩溃。

(3) 有没有办法隐藏图层并将背景颜色更改为clearColor?
layer.hidden=yes; 不起作用。

layer.backgroundColor = [[UIColor clearColor] CGColor] 
// is not working but its working for other colors like blueColor

(1) Trying change the frame color of popover Background but its not happening... Is there any way to change it?

(2) Have tried removing the sublayer of popover and replacing with other layer with this was able to remove the default frame but the application crashes while dissmising the popover.

(3) Is there any way to hide a layer and changing background color to clearColor?
layer.hidden=yes; is not working.

layer.backgroundColor = [[UIColor clearColor] CGColor] 
// is not working but its working for other colors like blueColor

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文