I tested my device (iPod Touch 2G iOS 4.1) if location services are enabled
permitted = [locationManager locationServicesEnabled];
and I always get a YES whether location services are enabled or not. I'm talking about the general button for location services and not the app specific button. On iPad with iOS 3.2.2 everything is working fine.
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]