I want my NSTimer to speed up each time it’s run:
-(void)runtimer {
int delay = delay - 1;
[NSTimer scheduledTimerWithTimeInterval:(delay)
target:self
selector:@selector(timerTriggered:)
userInfo:nil
repeats:YES];
}
But this doesn’t work. How can I make the delay keep getting smaller and smaller?
You have to declare the delay somewhere, like in the class interface or as a static variable.
Also, create a new timer every time, instead of having it repeat.