美文网首页
这个isa到底是什么呢?

这个isa到底是什么呢?

作者: 莎楽哥哥鸭 | 来源:发表于2021-01-29 13:28 被阅读0次

    官方介绍是这样的:

    Every object is connected to the run-time system through itsisainstance variable,inherited fromthe NSObject class.isaidentifiesthe object's class;it points to a structure that's compiled from the class definition. Throughisa, an object can find whatever information it needs at run timesuch as its place in the inheritance hierarchy, the size and structure of its instance variables, and the location of the method implementations it can perform in response to messages.

    Every object has anisainstance variable that identifies the object's class. The runtime uses this pointer to determine the actual class of the object when it needs to.

    相关文章

      网友评论

          本文标题:这个isa到底是什么呢?

          本文链接:https://www.haomeiwen.com/subject/anpokttx.html