修正翻译错误
refer to self as a value 翻译错误 测试不可以pass ```swift let aaa = self super.init() ``` 可以pass ```swift self.idLabel = UILabel() et aaa = self.idLabel super.init() ```
This commit is contained in:
@ -375,7 +375,7 @@ Swift 编译器将执行 4 种有效的安全检查,以确保两段式构造
|
|||||||
|
|
||||||
#### 安全检查 4
|
#### 安全检查 4
|
||||||
|
|
||||||
构造器在第一阶段构造完成之前,不能调用任何实例方法、不能读取任何实例属性的值,也不能引用`self`的值。
|
构造器在第一阶段构造完成之前,不能调用任何实例方法、不能读取任何实例属性的值,`self`的值不能被引用。
|
||||||
|
|
||||||
以下是两段式构造过程中基于上述安全检查的构造流程展示:
|
以下是两段式构造过程中基于上述安全检查的构造流程展示:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user