对`objc2`中的`struct objc_class`感到困惑

时间:2018-03-08 11:50:46

标签: objective-c

struct objc_class { 
    Class _Nonnull isa  OBJC_ISA_AVAILABILITY; 

#if !__OBJC2__
    Class _Nullable super_class                              OBJC2_UNAVAILABLE; 
    const char * _Nonnull name                               OBJC2_UNAVAILABLE; 
    long version                                             OBJC2_UNAVAILABLE; 
    long info                                                OBJC2_UNAVAILABLE; 
    long instance_size                                       OBJC2_UNAVAILABLE; 
    struct objc_ivar_list * _Nullable ivars                  OBJC2_UNAVAILABLE; 
    struct objc_method_list * _Nullable * _Nullable methodLists  OBJC2_UNAVAILABLE; 
    struct objc_cache * _Nonnull cache                       OBJC2_UNAVAILABLE; 
    struct objc_protocol_list * _Nullable protocols          OBJC2_UNAVAILABLE; 
#endif

} OBJC2_UNAVAILABLE;

这是objc_class struct,这是否意味着objc2.0仅包含isaXcode9.2正在使用objc2.0,super_class,name和其他存储在哪里?

0 个答案:

没有答案