我刚拿到我的 Estimote iBeacons 包,我正在尝试做一些听起来很简单的事情。
我想从触发 didEnterRegion 方法的信标中获取“主要”和“次要”ID。方法如下:
-(void)beaconManager:(ESTBeaconManager *)manager
didEnterRegion:(ESTBeaconRegion *)region
{
UILocalNotification *notification = [[UILocalNotification alloc] init];
notification.alertBody = @"Welcome home rockstar!";
notification.soundName = UILocalNotificationDefaultSoundName;
[[UIApplication sharedApplication] presentLocalNotificationNow:notification];
}
我知道 Estimote 信标的 UUID 始终是 B9407F30-F5F8-466E-AFF9-25556B57FE6D。但是我如何从触发此事件的特定信标中获取主要和次要 ID?我想将两个 id 格式化为 NSStrings。
任何帮助都会很棒!谢谢!