I have one problem: when i create NSTimer with:
NSTimer *some_timer = [NSTimer scheduledTimerWithTimeInterval:0.001 target:self selector:@selector(gamePlay) userInfo:nil repeats:YES];
I have a problem, my timer is immediately run.
How i need to write code to create timer, but run and start when it need, with some method???
Create it using
+alloc/-initWithFireDate:interval:target:selector:userInfo:repeats:, with a fire date far in the future, and send it a-setFireDate:message when you want it to start.What I’m not understanding about your question is why you want to create the timer before you need it do to anything?