摘要:
UIView*v=[[UIViewalloc]initWithFrame:CGRectZero]; [tableViewsetTableFooterView:v];[v release]; 阅读全文
摘要:
默认的performSelector支持最多传递两个参数,要想传递超过两个的参数,需要使用NSInvocation来模拟performSelector的行为,如下:- (id)performSelector:(SEL)aSelector withObjects:(NSArray *)argumentsArray{ NSMethodSignature *sig = [selfmethodSignatureForSelector:aSelector]; if (sig) { NSInvocation *invocation = [NSInvocationinvocationWithMe... 阅读全文