初始化的优点或区别是什么:
原文链接:https://www.f2er.com/swift/320005.htmllazy var hintView: HintView = { let hintView = HintView() return hintView }()
而不是简单地使用:
var hintView = HintView()
(HintView是:类HintView:UIView {})
非常感谢帮助.