Created
August 11, 2014 20:39
-
-
Save CHLibrarian/3d527dbdc110900b694d to your computer and use it in GitHub Desktop.
ContextHub Element Services Geofence Retrieve ID Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Getting a geofence with a specific ID | |
NSString *geofenceID = @"1000"; | |
[[CCHGeofenceService sharedInstance] getGeofenceWithId:geofenceID completionHandler:^(NSDictionary *geofence, NSError *error)completionHandler { | |
if (!error) { | |
CLCircularRegion *geofenceRegion = [CCHGeofenceService regionForGeofence:geofence]; | |
} else { | |
NSLog(@"Could not get geofence from ContextHub"); | |
} | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment