UIBlurEffect而无需额外的光“风格”

问题描述:

在苹果开发类引用它说,有三种类型的模糊效果,你可以应用到UIVisualEffectsViewUIBlurEffect而无需额外的光“风格”

typedef enum { 
    UIBlurEffectStyleExtraLight, 
    UIBlurEffectStyleLight, 
    UIBlurEffectStyleDark 
} UIBlurEffectStyle; 

它说:

  • UIBlurEffectStyleLight

创建一个模糊在视图中的效果。该视图的区域是底层视图的相同近似色调 。

适用于iOS 8.0或更高。

我试图用UIBlurEffectStyleLight但很明显,这种影响将白叠加到视图至极,我不想......

What i get

What i want

这甚至可能与UIVisualEffectsView ?或者我必须使用完全不同的方法来添加模糊?

UIVisualEffectsView确实不那么灵活。 我认为你在找什么就像FXBlurView