super
struct objc_super{
__unsafe_unretained _Nonnull id receiver;
__unsafe_unretained _Nonnull id Class super_class;
}
[super xxxx];
转化
struct objec_super = arg = {self,[self superclass]};
objc_msgSendSuoer(arg,@selector(xxx));
实际接收者还是 self
[self class];
[super class];
都是用原类里面找class方法
网友评论