view = UIView(frame: CGRect(x: 0, y: 0, width: 100, height: 100)) ///模糊 let effect = UIBlurEffect(style: UIBlurEffectStyle.Dark) let effectView = UIVisualEffectView(effect: effect) effectView.frame = view.bounds view.addSubview(effectView)///添加模糊
-
///有三种 模糊效果 public enum UIBlurEffectStyle : Int {
case ExtraLight case Light case Dark }
-
######看我那么可爱n(≧▽≦)n
-
关注我的微薄 (梁同桌):http://weibo.com/tongrenyinsheng
-
个人网站(同人音声) http://www.tongrenyinsheng.com
-
ios 个人写的app (同人音声)ASMR音乐