run code every 10 minutes when app is Terminate

时间:2015-06-30 13:42:33

标签: ios backgroundworker

I want to run a code every ten minutes for ever. I used a NSTimer but when the app is in Background or Terminate the timer stops. I developed a game

1 个答案:

答案 0 :(得分:1)

Just store time, when app is terminated(or send background). When user open your app in next time, load this time. Check with current time and make changes in points.