xcodecllocationmanagerios9.1

CLLocationManager locationServicesEnabled always return TRUE in iOS 9


I've been doing some research about CoreLocation. Recently, I encountered a problem that is [CLLocationManager locationServicesEnabled] is always return true in iOS 9.let me know why this happened..

Thanks


Solution

  • Remember that [locationManager locationServicesEnabled] is deprecated since iOS 4.0. Use the Class Method [CLLocationManager locationServicesEnabled] instead.

    The App Specific Button can be retrieved by

    [CLLocationManager authorizationStatus]