iOS Reference Library Apple Developer
Search

Deprecated CLLocationManager Methods

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

Deprecated in iOS 4.0

headingAvailable

A Boolean value indicating whether the location manager is able to generate heading-related events. (read-only) (Deprecated in iOS 4.0. Use the headingAvailable class method instead.)

@property(readonly, nonatomic) BOOL headingAvailable

Discussion

Heading data may not be available on all iOS-based devices. You should check the value of this property before asking the location manager to deliver heading-related events.

Availability
  • Available in iOS 3.0 and later.
  • Deprecated in iOS 4.0.
Declared In
CLLocationManager.h

locationServicesEnabled

A Boolean value indicating whether location services are enabled on the device. (read-only) (Deprecated in iOS 4.0. Use the locationServicesEnabled class method instead.)

@property(readonly, nonatomic) BOOL locationServicesEnabled

Discussion

The user can enable or disable location services from the Settings application by toggling the Location Services switch in General.

You should check this property before starting location updates to determine whether the user has location services enabled for the current device. If this property contains the value NO and you start location updates anyway, the Core Location framework prompts the user with a confirmation alert asking whether location services should be reenabled.

Special Considerations

In iOS, this property is declared as nonatomic. In Mac OS X, it is declared as atomic.

Availability
  • Available in iOS 2.0 and later.
  • Deprecated in iOS 4.0.
Declared In
CLLocationManager.h



Last updated: 2010-05-14

Did this document help you? Yes It's good, but... Not helpful...