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
Post a Comment