2011-01-06 4 views
0

IWie get Informationen über den Standort zu halten und fügen iphone Mapview wenn in screensaving Modus

bin mit
  • (void) Locationmanager: (CLLocationManager *) Manager didUpdateToLocation: (CLLocation *) newLocation fromLocation: (CLLocation *) oldLocation

um weiterhin Standortinformationen zu erhalten, fügen Sie Annotation zu MKMapView hinzu. Es scheint, dass es aufhört, wenn iphone Bildschirm im Bildschirmschonermodus aktualisiert.

Irgendwelche Suggestionen? Vielen Dank.

Antwort

2

Können Sie den Bildschirmschonermodus ausschalten? Sie können dies tun, indem Sie: [UIApplication sharedApplication].idleTimerDisabled = YES; Diese sollte Ihr Problem lösen.