可以很方便的通過NSObject
的 (NSMethodSignature *)instanceMethodSignatureForSelector:(SEL)aSelector
方法獲取NSMethodSignature
,
然後通過NSInvocation
的 (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)signature
生成NSInvocation
這裏隻能得到instanceMethodSignature
,怎麼獲取類方法?