Hi Guys Am working on Geo-Fencing! Location manager didDetermineState is calling properly but when i entered region didEnterRegion and didExitRegion never been invoked.
Please try to call on main thread.
if ([CLLocationManager locationServicesEnabled])
{
[self performSelectorOnMainThread:@selector(updateLocation) withObject:self waitUntilDone:NO];
}
- (void)updateLocation
{
arr_region=[[NSMutableArray alloc] init];
self.locationManager = [[CLLocationManager alloc] init];
self.locationManager.delegate = self;
self.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
self.locationManager.pausesLocationUpdatesAutomatically = NO;
[locationManager startUpdatingLocation];
}
i hope it helpful.