1.struct objc_class结构

2.class_rw_t结构


3.class_ro_t结构

4.method_array_t结构

5.class_rw_t与class_ro_t的关系
class_ro_t,在创建之初已经存在,在class_to_t在给class_rw_t的ro属性赋值之前,会判断rw是否存在,若不存在,需要创建rw,再将ro赋值给rw的ro变量。然后再将rw赋值给class对象。

1.struct objc_class结构
2.class_rw_t结构
4.method_array_t结构
本文标题:十九、Runtime之(三)class结构
本文链接:https://www.haomeiwen.com/subject/mtprgqtx.html
网友评论