可以很方便的通过NSObject
的
+ (NSMethodSignature *)instanceMethodSignatureForSelector:(SEL)aSelector
方法获取NSMethodSignature
,
然后通过NSInvocation
的
+ (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)signature
生成NSInvocation
这里只能得到instanceMethodSignature
,怎么获取类方法?