文章問題
- 什么是SEL ,SEL 如何獲得到 澈灼?
- 什么是IMP竞川,IMP 如何獲得到,如何自定義叁熔?
- 什么是方法
- 什么是types
1.什么是SEL
SEL: 方法編號委乌,NSSelectorFromString() ,@selector()
2.什么是IMP,IMP 如何獲得到荣回,如何自定義福澡?
IMP :方法的地址
3. 什么是方法
//即為什么是 object_method ,或者是Method_t
4.什么是types
是對方法返回類型,參數(shù)類型進行編碼的
蘋果官網(wǎng):https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html#//apple_ref/doc/uid/TP40008048-CH100