CoreLocation & MapKit

  • CoreLocation & MapKit

    Hallo,
    beschäftige mich seit einiger Zeit mit CoreLocation & MapKit habe nun jetzt eine Fragen dazu die ich mir irgendwie (auch mit Hilfe der Dokumentation nicht beantworten kann)

    mapView:didUpdateUserLocation:
    Tells the delegate that the location of the user was updated.


    Quellcode

    1. - (void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation
    2. Parameters
    3. mapView
    4. The map view that is tracking the user’s location.
    5. userLocation
    6. The location object representing the user’s latest location.
    7. Discussion
    8. While the showsUserLocation property is set to YES, this method is called whenever a new location update is received by the map view. This method is also called if the map view’s user tracking mode is set to MKUserTrackingModeFollowWithHeading and the heading changes.
    9. This method is not called if the application is currently running in the background. If you want to receive location updates while running in the background, you must use the Core Location framework.
    10. Availability
    11. Available in iOS 4.0 and later.
    12. Declared In
    13. MKMapView.h
    Alles anzeigen


    CLLocationManager hat ja verschiedene Genauigkeit, die auch unterschiedlich viel Akku verbrauchen.... wie schaut das beim MapKit aus? Habe da in der Dokumentation nichts gefunden, was darauf hindeutet wie oft und mit welcher Genauigkeit die Map die Position "updated"?
    Wie geht man am besten damit um, wenn man immer ein Update haben will wenn sich der User bewegt?
    Einfach "showsUserLocation" auf YES setzen und das MapKit machen lassen?



    würde mich über eine Antwort freuen!
    Danke!

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von triplejberger ()