Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Let's now move to the next Location Service provided by the iOS Location Manager — Region/Boundary Monitoring. We use the CLRegion class and its method, namely, didEnterRegion to monitor whether the user's position falls in the boundary.
Hello Location project. In the Hello_locationViewController.h file, add the CLRegion definition as follows:CLRegion *boundary;
Hello_LocationViewController.m file, we create a circular boundary/region centered around San Francisco geo co-ordinates, with a radius of 1000 meters. We initialize the boundary variable as the following:CLLocationCoordinate2D regionCords = CLLocationCoordinate2DMake (37.78 , -122.408); boundary = [[CLRegion alloc]initCircularRegionWithCenter:regionCords radius:1000.0f identifier:@"San Francisco"];