标签:
在 iOS 开发中,懒加载是无处不在的
lazy var person: Person = {
print("懒加载")
return Person()
}()
let personFunc = { () -> Person in
print("懒加载")
return Person()
}
lazy var demoPerson: Person = self.personFunc()
lazy var demoPerson: Person = Person()
标签:
原文地址:http://www.cnblogs.com/-liangjingjing/p/5350372.html