0
votes

I am using

  • (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation

to keep receiving location information, then add annotation to MKMapView. It appears that it stop updating when iphone screen in screensaving mode.

Any suggetion? Thanks.

1

1 Answers

2
votes

Could you turn off the screensaving mode? You can do so by calling: [UIApplication sharedApplication].idleTimerDisabled = YES; This should solve your problem.