A method identified as deprecated has been superseded and may become unsupported in the future.
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
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.
CLLocationManager.h
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
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.
In iOS, this property is declared as nonatomic
. In Mac OS X, it is declared as atomic
.
CLLocationManager.h
Last updated: 2010-05-14