阅读背景:

需要self在init中设置swift类的所有常量

来源:互联网 

I have a Swift class that has a constant ivar (are they called instance constants now?). To set the value to this constant, I need to call an initializer of the desired object and pass itself. However, I am not allowed to as I need to initialize all values first, then call I have a Swift class that has a constant ivar (




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: