我发现一些问题: 当我只有UUID
和identifier
,功能注册CLBeaconRegion
:一些混淆CLBeaconRegion和didEnter didExit区域回调
func locationManager(_ manager: CLLocationManager, didExitRegion region: CLRegion)
func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion)
被称为漂亮。
但当我注册CLBeaconRegion与UUID
,major
和identifier
或UUID
,major
,minor
和identifier
,这些功能不会被调用。
为什么?我找不到有关此行为的任何文档。
它可能是一些其他问题,因为主要和次要不导致测距您的信标。通过这个教程可能是你错过了一些东西https://www.raywenderlich.com/152330/ibeacon-tutorial-ios-swift –
你指定的主要和次要值是否与你的信标值相匹配? – Paulw11
@ Paulw11是的,主要和次要的比赛。 –