Skip to content

Commit c18d686

Browse files
author
Draveness
committed
Update 懒惰的 initialize 方法.md
1 parent f4f159c commit c18d686

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

objc/懒惰的 initialize 方法.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ static void _finishInitializing(Class cls, Class supercls)
291291
3. `initialize` 的运行是线程安全的
292292
4. 子类会**继承**父类的 `initialize` 方法
293293
294+
而其作用也非常局限,一般我们只会将 `initialize` 方法用作某些常量的初始化的地方。
295+
294296
## 参考资料
295297
296298
+ [What is a meta-class in Objective-C?](http://www.cocoawithlove.com/2010/01/what-is-meta-class-in-objective-c.html)

0 commit comments

Comments
 (0)