Deprecated CLLocationManagerDelegate Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in iOS 6.0

locationManager:didUpdateToLocation:fromLocation:

Tells the delegate that a new location value is available. (Deprecated in iOS 6.0. Use locationManager:didUpdateLocations: instead.)

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

The location manager object that generated the update event.

newLocation

The new location data.

oldLocation

The location data from the previous update. If this is the first update event delivered by this location manager, this parameter is nil.

Discussion

By the time this message is delivered to your delegate, the new location data is also available directly from the CLLocationManager object. The newLocation parameter may contain the data that was cached from a previous usage of the location service. You can use the timestamp property of the location object to determine how recent the location data is.

Availability
  • Available in iOS 2.0 and later.
  • Deprecated in iOS 6.0.
Declared In
CLLocationManagerDelegate.h