码迷,mamicode.com
首页 > 其他好文 > 详细

添加UIVisualEffectView

时间:2015-06-09 11:49:28      阅读:107      评论:0      收藏:0      [点我收藏+]

标签:

添加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)

添加UIVisualEffectView

标签:

原文地址:http://blog.csdn.net/rainlesvio/article/details/46424391

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!