iOS 8 CLLocationManager enterRegion: not getting called if use requestWhenInUseAuthorization
- 阅读更多 关于 iOS 8 CLLocationManager enterRegion: not getting called if use requestWhenInUseAuthorization
问题 I'm trying to get being called the delegate method locationManager:didEnterRegion in iOS 8 for custom region. Here is the code: self.locationManager = [[CLLocationManager alloc] init]; self.locationManager.delegate = self; if ([self.locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) { [self.locationManager requestWhenInUseAuthorization]; } CLCircularRegion *region = [[CLCircularRegion alloc] initWithCenter:CLLocationCoordinate2DMake(20, 20) radius:1000 identifier:@