次のようにCLLocationManagerを設定しました
self.locationManager.delegate = self;
if ([CLLocationManager isMonitoringAvailableForClass:[CLBeaconRegion class]]) {
[self.locationManager startMonitoringForRegion:self.region];
}
else {
NSLog(@"CLBeaconRegion monitoring not available");
}
if ([CLLocationManager isRangingAvailable]) {
[self.locationManager startRangingBeaconsInRegion:self.region];
}
else {
NSLog(@"CLBeaconRegion ranging not available");
}
locationManager:didEnterRegion: と locationManager:didRangeBeacons:inRegion: は呼び出されません。iOS 7.1 を使用していますが、iPad と iPhone の両方で問題が発生しています。私はEstimoteビーコンを使用しています。