原文地址
Turns out just like in Obj-C, in Swift it's possible to declare nicely encapsulated readonly properties.
public private(set) var foo: String复制代码
Thank you reader
原来这么简单,但好像很少人说
本文共 181 字,大约阅读时间需要 1 分钟。
原文地址
Turns out just like in Obj-C, in Swift it's possible to declare nicely encapsulated readonly properties.
public private(set) var foo: String复制代码
Thank you reader
原来这么简单,但好像很少人说
转载地址:http://demyx.baihongyu.com/