https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html#//apple_ref/doc/uid/TP40008048-CH100-SW1 To assist the runtime system, the compiler encodes the return and argument types for…
[Type Encodings] The compiler encodes the return and argument types for each method in a character string and associates the string with the method selector. 编译器把方法的返回值类型与参数类型encode成字符串,然后把此字符串与method selector关联起来. When given a type specification, @e…
/** * Describes the instance variables declared by a class. * * @param cls The class to inspect. * @param outCount On return, contains the length of the returned array. * If outCount is NULL, the length is not returned. * * @return An array of pointe…
#import <objc/runtime.h> void setBeingRemoved(id __self, SEL _cmd) { NSLog(@"------------UNSELECT BY INVOKE."); } // Then these two lines: Class __class = NSClassFromString(@"WebActionDisablingCALayerDelegate"); class_addMethod(_…