目前我正在做类似以下的事情来开始获取信标的范围更新:
NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:@"bec26202-a8d8-4a94-80fc-9ac1de37daa6"];
self.beaconRegion = [[CLBeaconRegion alloc] initWithProximityUUID:uuid identifier:@"com.bla.bla"];
[self.locationManager startMonitoringForRegion:self.beaconRegion];
效果很好。但我想知道是否有办法获取范围内所有信标区域的 uuid,并对它们进行测距,而不是我指定 uuid。
我想这可以使用CoreBluetooth,手动检查范围内的广告服务等吗?但如果 CoreLocation 能以某种方式做到这一点,那将会非常复杂,更好。