开发者

How to keep get location info and add to mapview when iphone in screensaving mode

I am using

- (void)locationManager:(CLLocationManager *)manager didUpda开发者_开发技巧teToLocation:(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 screen saving mode.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜