4
所有可用的燈塔地區目前我做的東西像下面這樣開始獲得信標的範圍的更新:監控使用CLLocationManager
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];
這是偉大的工作。但我想知道是否有辦法獲得範圍內所有燈塔區域的uuids,並對它們進行測距,而不是指定uuid。
我想這可能會使用CoreBluetooth,手動檢查廣告服務範圍等?但是如果CoreLocation能以某種方式做到這一點,那將會非常複雜,更好。