How can I programmatically pause an NSTimer?

前端 未结 15 1745
梦毁少年i
梦毁少年i 2020-11-27 13:06

I\'m using an NSTimer to do some rendering in an OpenGL based iPhone app. I have a modal dialog box that pops up and requests user input. While the user is providing input

15条回答
  •  庸人自扰
    2020-11-27 13:13

    Here is a Simple swift pause/play timer.

    https://github.com/AnthonyUccello/Swift-Pausable-Timer/blob/master/Timer.swift

提交回复
热议问题