在 Apples Developer Class-Reference 中,您可以将三种类型的模糊效果应用于 UIVisualEffectsView
。 :
typedef enum {
UIBlurEffectStyleExtraLight,
UIBlurEffectStyleLight,
UIBlurEffectStyleDark
} UIBlurEffectStyle;
它说:
- UIBlurEffectStyleLight
Creates a blurring effect in the view. The area of the view is the same approximate hue of the underlying view.
Available in iOS 8.0 and later.
我尝试使用
UIBlurEffectStyleLight
但很明显,这种效果为我不想要的 View 添加了一个白色的覆盖层......What i get
What i want
UIVisualEffectsView
是否有可能? ?还是我必须使用完全不同的方法来添加模糊?
最佳答案
UIVisualEffectsView
真的没有那么灵活。
我认为您正在寻找的内容类似于 FXBlurView .
关于ios - 没有额外光线的 UIBlurEffect "style",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33567634/