Checking for Regional Monitoring Capability

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"];}

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.