这里是iOS深度学习-Runtime的大纲。

一、Class

1,isa指针、super_class指针

2,metaclass(元类)

3,objc_object(表示一个 类的实例 的结构体) 和  id类型(typedef struct objc_object *id)

 

二、Ivar

objc_setAssociatedObject

 

三、Method

cache机制、SEL、IMP指针、Method Swizzling、 objc_msgSend

 

四、Protocal

objc_protocol_list

 

五、Category

 

 

参考

① http://southpeak.github.io/blog/2014/10/25/objective-c-runtime-yun-xing-shi-zhi-lei-yu-dui-xiang/

② http://www.cnblogs.com/whyandinside/archive/2013/02/26/2933552.html

③ http://www.cocoachina.com/ios/20150717/12623.html

④ http://www.cocoachina.com/industry/20140527/8570.html

 

相关文章:

  • 2021-04-26
  • 2022-12-23
  • 2021-08-13
  • 2021-06-22
  • 2021-09-30
  • 2021-12-16
  • 2021-08-18
猜你喜欢
  • 2021-06-12
  • 2021-09-05
  • 2021-10-07
  • 2021-05-01
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
相关资源
相似解决方案