Verify that a device has GPS and Location Service is active

2

I need to check if the iPad I'm using has GPS and if the app's location service is active while using the app, how can I get this information?

    
asked by anonymous 02.04.2014 / 19:38

1 answer

2

Using the CLLocationManager class you can use the method locationServicesEnabled , which returns a BOOL value.

if (![CLLocationManager locationServicesEnabled]) {
    // Localização não habilitada
}

I believe you can get what you want with this.

    
03.04.2014 / 01:40