super调用,底层会转换为objc_msgSendSuper2函数的调用,接收2个参数
struct objc_super2
SEL
///
Struct objc_super2{
id receiver;
class current_class;
}
///
receiver是消息接受者
Current_class是receiver的Class对象
super调用,底层会转换为objc_msgSendSuper2函数的调用,接收2个参数
struct objc_super2
SEL
///
Struct objc_super2{
id receiver;
class current_class;
}
///
receiver是消息接受者
Current_class是receiver的Class对象
本文标题:Super的本质
本文链接:https://www.haomeiwen.com/subject/cayccktx.html
网友评论