【发布时间】:2011-12-03 16:39:20
【问题描述】:
是否可以在设置 NSTimer 时在方法中给出参数?我想创建如下内容:
[NSTimer [NSTimer scheduledTimerWithTimeInterval:0.05 target:self selector:@selector(moveParticle:imageView) userInfo:nil repeats:YES];
其中“imageView”是方法的参数。它给了我一个错误,说它在“imageView”之后的parathesis之后需要一个分号。
有什么帮助吗?
【问题讨论】:
标签: iphone objective-c xcode nstimer