here is my question:
Is it possible to increase the scheduledTimerWithTimeInterval:2
for example of "3" after 10 seconds in ViewDidLoad for example.
E.g., from this:
[NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(createNewImage) userInfo:nil repeats:YES];
to this:
[NSTimer scheduledTimerWithTimeInterval:3 target:self selector:@selector(createNewImage) userInfo:nil repeats:YES];
thank you sorry for my english I french :/
Reschedule the timer recursively like this:
========
Or according to How can I update my NSTimer as I change the value of the time interval
Invalidate it with:
Then create a new one with the new time. You may have to set it to nil first as well.
Use
setFireDate:
to reschedule the timer. You'll need to keep track of the timer in an ivar. For example: