美文网首页
SEL IMP 分别是啥?

SEL IMP 分别是啥?

作者: 木兮_君兮 | 来源:发表于2019-05-15 15:44 被阅读0次

文章问题

  1. 什么是SEL ,SEL 如何获得到 ?
  2. 什么是IMP,IMP 如何获得到,如何自定义?
  3. 什么是方法
  4. 什么是types

1.什么是SEL

SEL: 方法编号,NSSelectorFromString() ,@selector()

2.什么是IMP,IMP 如何获得到,如何自定义?

IMP :方法的地址

3. 什么是方法

//即为什么是 object_method ,或者是Method_t

4.什么是types

是对方法返回类型,参数类型进行编码的
苹果官网:https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html#//apple_ref/doc/uid/TP40008048-CH100

相关文章

网友评论

      本文标题:SEL IMP 分别是啥?

      本文链接:https://www.haomeiwen.com/subject/aihyaqtx.html