标签:
lazy var demoView: UIView = {
let v = UIView(frame: CGRectMake(10, 10, 100, 100))
v.backgroundColor = UIColor.redColor()
return v
}()
lazy var 变量: 类型 = { 创建变量代码 }()
标签:
原文地址:http://www.cnblogs.com/Milo-CTO/p/4598848.html