开发者

Objective C associated objects

开发者 https://www.devze.com 2023-04-11 19:55 出处:网络
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 tha

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

精彩评论

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

关注公众号