NSTimer Keep counting after app is closed in iPhone

后端 未结 2 2019
礼貌的吻别
礼貌的吻别 2021-01-14 21:09

I have a timer that have to count up to 8 hours (28800 second) after that it should be released

im wondering how to keep the timer running at the background and/or w

2条回答
  •  日久生厌
    2021-01-14 22:10

    You can't - once your app is closed then it's not running anymore so the timer won't be running either.

    Take a look at local notifications?

提交回复
热议问题