开发者

Objective C associated objects

Can anyone explain how a开发者_高级运维ssociated objects work, under the hood? In particular, does their existence require every object to hold an extra ivar? Or does Objective C have a way to avoid that?


Associated objects are kept in a dictionary separate from the instance storage.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜