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?
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?
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.