iOS 7 dynamic blur effect like in Control Center

前端 未结 6 2078
Happy的楠姐
Happy的楠姐 2020-12-12 11:04

I\'m trying to make a controller that will be similar to Control Center in iOS7. From WWDC session #226 I\'ve learnt how to get blurred image with different effects

6条回答
  •  余生分开走
    2020-12-12 11:44

    You can use UIVisualEffect from storyboard.

    Drag the Visual Effect With Blur on the storyboard. The desired effect can be achieved by setting alpha of the BACKGROUND COLOR. The subviews should be added to View of Visual Effect View and they are not affected by the background blur.

    The Vibrancy effect must be selected in View options above.

    See image:

提交回复
热议问题