标签:
添加UIVisualEffectView
by 伍雪颖
let bgView : UIImageView = UIImageView(image: UIImage(named: "1.jpg"))
bgView.frame = self.view.bounds
self.view.addSubview(bgView)
let blurEffect: UIBlurEffect = UIBlurEffect(style: .Light)
let blurView: UIVisualEffectView = UIVisualEffectView(effect: blurEffect)
blurView.frame = CGRectMake(50, 50, self.view.frame.width - 100, 200)
self.view.addSubview(blurView)
标签:
原文地址:http://blog.csdn.net/rainlesvio/article/details/46424391