November 2013
Intermediate to advanced
576 pages
19h 3m
English
The Core Location location manager has a class method that indicates whether regional monitoring is available for the device. This can be used to customize whether an app performs regional monitoring tasks. For example, the sample app will conditionally display a switch to enable geofencing for a favorite location in the ICFFavoritePlaceViewController.
BOOL hideGeofence =![CLLocationManager regionMonitoringAvailable];[self.displayProximitySwitch setHidden:hideGeofence];if (hideGeofence){ [self.geofenceLabel setText:@"Geofence N/A"];}
Read now
Unlock full access