objective-c - 如何使用NSInvocation调用类方法
PHP中文网
PHP中文网 2017-04-21 10:57:47
0
1
448

可以很方便的通过NSObject
+ (NSMethodSignature *)instanceMethodSignatureForSelector:(SEL)aSelector
方法获取NSMethodSignature
然后通过NSInvocation
+ (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)signature
生成NSInvocation

这里只能得到instanceMethodSignature,怎么获取类方法?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
迷茫

Create a singleton auxiliary object. The instance method a of the auxiliary object calls the class method b, and then obtains the MethodSignature of a

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template