【发布时间】:2014-01-27 19:31:07
【问题描述】:
我已经开始使用 estimotes 作为信标来测试 iBeacon。
一切都运行得很好,但我正在努力让应用程序在后台正常运行。
self.region = [[CLBeaconRegion alloc] initWithProximityUUID:self.uuid identifier: self.deviceID];
self.region.notifyEntryStateOnDisplay = YES;
[self.locationManager startMonitoringForRegion:self.region];
所以这是基本设置,对于我的测试应用程序,我想在我的手机靠近信标时显示本地通知。我的问题是除非我包含下面的行,否则它将无法工作。
[self.locationManager startUpdatingLocation];
谁能解释为什么会这样,或者我是否遗漏了有关 iBeacons 的某些内容?
【问题讨论】:
-
嗨,您在 startUpdatingLocation 上的问题得到答案了吗?
标签: ios core-location ibeacon