how can i pause and resume NSTimer.scheduledTimerWithTimeInterval in swift?
i'm develop game, and i want create pause menu . i use
but NSTimer.scheduledTimerWithTimeInterval still running..
I want time3 will be pause timer when player click pause menu and continue run the timer when player back to the game, but how i can paused NSTimer.scheduledTimerWithTimeInterval ? or any other solution for timer, in addition to nstimer, for call method and posible to pause ? help me please |
iOS 8, swift