Skip to content

Commit fb0ff32

Browse files
author
Draveness
committed
Merge branch 'master' of github.com:Draveness/iOS-Source-Code-Analyze
2 parents 70b68a3 + c762126 commit fb0ff32

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)