What happens to an iPhone app when iPhone goes into stand-by mode?

后端 未结 6 795
忘掉有多难
忘掉有多难 2020-12-02 07:21

My app uses NSTimer and it appears that NSTimer doesn\'t fire when the iPhone goes into the stand-by mode (either by pressing the hardware button or by the idle timer).

6条回答
  •  無奈伤痛
    2020-12-02 07:51

    I believe your application should run normally when suspended. (think Pandora Radio)

    Check to see if your timer is being deallocated due to your view being hidden or some other event occurring.

提交回复
热议问题