摘要: UIView*v=[[UIViewalloc]initWithFrame:CGRectZero]; [tableViewsetTableFooterView:v];[v release]; 阅读全文
posted @ 2013-10-25 09:55 NSTopGun 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 默认的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 阅读(980) 评论(0) 推荐(0) 编辑