Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在阅读 Apple关于 Objective-C 运行时类型编码字符串的文章, 并且某些方法的类型字符串中有数字。
里面的数字v12@0:4@8是什么意思?
v12@0:4@8
这看起来像这样的 setter 方法的编码:
- (void) setSomething:(id) anObject
分解它:
v
12
@0
self
:4
_cmd
@8