开发者

passing uiimageview as a parameter in NStimer selector?

i created a function onTimer passing it a uiimageview parameter...but when i call this function in a NStimer call as shown below i get a syntax error?? is there any other way around it??

[NSTimer scheduledTimerWithTimeInterval:0.05 target:self selector:@sele开发者_如何学Cctor(onTimer:image) userInfo:nil repeats:YES];


Pass your Image View through userInfo.

Using @selector(onTimer:image:) will not help you since you can't specify what it should pass into the second parameter.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜