Ios “无额外光线的效果”;“风格”;
在Apple Developer类参考中,它指出有三种类型的模糊效果可以应用于Ios “无额外光线的效果”;“风格”;,ios,uiview,blur,Ios,Uiview,Blur,在Apple Developer类参考中,它指出有三种类型的模糊效果可以应用于UIVisualEffectsView: typedef enum { UIBlurEffectStyleExtraLight, UIBlurEffectStyleLight, UIBlurEffectStyleDark } UIBlurEffectStyle; 它说: uifluectstylelight 在视图中创建模糊效果。视图的区域是 基本视图的近似色调相同 在iOS 8.0及更高版本
UIVisualEffectsView
:
typedef enum {
UIBlurEffectStyleExtraLight,
UIBlurEffectStyleLight,
UIBlurEffectStyleDark
} UIBlurEffectStyle;
它说:
- uifluectstylelight
UIBlurEffectStyleLight
,但很明显,这种效果在视图中添加了一个白色覆盖层,我不希望看到它
使用
UIVisualEffectsView
,这可能吗?或者我必须使用完全不同的方法添加模糊吗?UIVisualEffectsView
确实没有那么灵活。
我想你要找的是这样的