ios - How to set a NSTimer with a changing delay? -


i want set timer changing delay stored in variable. how this, if set timer within timer update delay doesn't work @ all. thanks

don't have repeating timer. use run once timer, , when completes/runs, create timer new delay.

or... @steve wilford noted in answer, use setfiredate: on nstimer. docs "adjusting firing time of single timer incur less expense creating multiple timer objects, scheduling each 1 on run loop, , destroying them."


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -