摘要:
默认的performSelector支持最多传递两个参数,要想传递超过两个的参数,需要使用NSInvocation来模拟performSelector的行为,如下:- (id)performSelector:(SEL)aSelector withObjects:(NSArray *)argumentsArray{ NSMethodSignature *sig = [selfmethodSignatureForSelector:aSelector]; if (sig) { NSInvocation *invocation = [NSInvocationinvocationWithMe... 阅读全文
posted @ 2013-10-25 09:50
NSTopGun
阅读(990)
评论(0)
推荐(0)

浙公网安备 33010602011771号