xcode - Count from 100 to 1 with a different interval -
i'm trying make countdown in swift not rely on specific time, time interval choose. example want countdown 100-99 take approximately 4 hours. possible in way?
you can use nstimer run specific task after given time , specify whether or not want repeat itself. method you're looking scheduledtimerwithtimeinterval. example, please @ this post.
for more informations, please @ apple's nstimer class reference , section titled scheduling timers in run loops.
Comments
Post a Comment