更改窗口小部件UIVisualEffectView将样式模糊为黑暗(Change Widget UIVisualEffectView blur style to dark)

编程入门 行业动态 更新时间:2024-10-16 22:24:58
更改窗口小部件UIVisualEffectView将样式模糊为黑暗(Change Widget UIVisualEffectView blur style to dark)

我正在为iOS 10更新我的一个小部件,并且在此过程中它的UIVisualEffectView样式自动更改为light 。 我还没有开始为iOS 10更新的其他小部件还有一个dark UIVisualEffectView风格。

如何访问我的小部件的UIVisualEffectView样式?

I'm working on updating one of my widgets for iOS 10 and in the process its UIVisualEffectView style automatically changed to light. My other widgets that I have not started updating for iOS 10 yet have a dark UIVisualEffectView style.

How can I access the UIVisualEffectView style for my widget?

最满意答案

在iOS 10中,您不应该使用任何视觉效果。 只需将小部件的主视图设为默认背景即可。 它会自动采用光模糊。 这就是应该看的样子。

In iOS 10, you are not supposed to use any visual effect. Just give your widget's main view the default background. It will automatically adopt the light blur. And that is the way it is supposed to look.

更多推荐

本文发布于:2023-08-05 23:23:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1440899.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:部件   样式   模糊   黑暗   窗口

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!