8
这里是我的 “targetMethod” 方法签名:试图让performSelector的可能最简单的例子:withObject工作
-(void)targetMethod: (id)arg;
这工作:
[myObject targetMethod:@"called the regular way"];
这不
[myObject performSelector:@selector(targetMethod) withObject:@"called using selector"];
它导致出现以下错误:
- [SelectorTest targetMethod]:无法识别的选择器发送到实例0x4e075d0
我在做什么错?
ack。当然。该死。在我的更复杂的例子中,我没有把它写错。 – morgancodes 2010-11-12 04:13:17
哦,不,我之前没有这样做过。 – morgancodes 2010-11-12 04:15:16
谢谢谢谢你谢谢!现在我需要用额头去绷带。 – morgancodes 2010-11-12 04:18:19