标签:属性 set get
var _image: UIImage? var image: UIImage? { get { return _image } set { _image = newValue } }
Swift 属性的 get set 方法的重写
原文地址:http://11046754.blog.51cto.com/11036754/1742095