1

次のように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ビーコンを使用しています。

4

1 に答える 1

4

iOS デバイスを再起動すると、問題は完全に解決しました。これが iOS のバグなのか、Estimote ビーコンのバグなのかは不明です。しかし、再起動が必要なようです。それはすぐに問題を解決し、それ以来問題はありませんでした。

于 2014-04-15T16:39:00.250 に答える