I’m trying to set up an NSTimer on a delegate – I’m so very new to objective-c so apologies if this doesn’t make much sense. But what I have written is:
animationTimer = [NSTimer scheduledTimerWithTimeInterval:(NSTimeInterval)((1.0 / 60.0) * animationFrameInterval) target:self.delegate selector:@selector(drawView) userInfo:nil repeats:TRUE];
Unfortunately this just doesn’t work. Can someone point me in the right direction? My mind has fried!!
You’ve got it right.
Just add a colon in the method name, i.e. @selector(drawView:). Also, by convention objective-c coders use YES and NO.