tags:

views:

105

answers:

1

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:@selector(onTimer:image) userInfo:nil repeats:YES];
+1  A: 

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.

beefon