Is it possible to run a task periodically in Background - iOS 4
问题 I want to poll the location from GPS in the background. So we used a NSTimer and performed periodic checks in the timer tick. In other words, can we schedule NSTimer while the app is in Background? Thanks in advance 回答1: You can't periodically execute arbitrary code, but you can get pinged on significant location changes via startMonitoringSignificantLocationChanges in CLLocationManager. 来源: https://stackoverflow.com/questions/3574248/is-it-possible-to-run-a-task-periodically-in-background