开发者

passing uiimageview as a parameter in NStimer selector?

开发者 https://www.devze.com 2022-12-30 22:45 出处:网络
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??

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

精彩评论

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