I have location services disabled for my application in the settings panel. I run a test in viewDidLoad in my view controller to see if they are enabled:
if([CLLocationManager locationServicesEnabled]) {
//Do something now
}
This test always passes for some reason. If I try and access location services I get a kCLErrorDenied error for the location manager. What gives?
Am I using the wrong test?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…