CLLocationManager locationServicesEnabled always return TRUE in iOS 9

586 Views Asked by At

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

1

There are 1 best solutions below

0
sai On BEST ANSWER

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]