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 回答