可以很方便的通过NSObject的+ (NSMethodSignature *)instanceMethodSignatureForSelector:(SEL)aSelector方法获取NSMethodSignature,然后通过NSInvocation的+ (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)signature生成NSInvocation
NSObject
+ (NSMethodSignature *)instanceMethodSignatureForSelector:(SEL)aSelector
NSMethodSignature
NSInvocation
+ (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)signature
慕森王
相关分类