ios - 没有额外光线的 UIBlurEffect "style"

标签 ios uiview blur

在 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/

相关文章:

ios - OpenSSL 签名*完全*需要 AppleWWDRCA 证书吗?

iphone - 如何设置 View 的背景图像?

ios - 如何将 CATransform3DTranslate 转换为 CGAffineTransform,以便它可以模仿轮播 View

iphone - loadView 与 init 方法

ios - 模糊效果没有填满整个View

java - 对于类型 AlertDialog.Builder 未定义方法 getWindow()

ios - 通过 Curl 的 App Store 停止工作

ios - 如何使用 EVURLCache 在 PreCache 中加载 UIWebView

android - 与 Android 相比,iOS 上的 ARGB 颜色不同

image-processing - 高斯模糊问题