OC
-(UILabel *)lb_title {
if (_lb_title == nil) {
_lb_title = [[UILabel alloc]init];
}
return _lb_title;
}
Swift
var lb_title = {
let lb = UILabel.init()
return lb
}()
-(UILabel *)lb_title {
if (_lb_title == nil) {
_lb_title = [[UILabel alloc]init];
}
return _lb_title;
}
var lb_title = {
let lb = UILabel.init()
return lb
}()
本文标题:02-懒加载(OC-Swift)
本文链接:https://www.haomeiwen.com/subject/alsawttx.html
网友评论