我与 iBeacon 合作,我想一起监控许多信标。我做了一个 for(NSDictionary *iBeacon in iBeacons) 来拥有我需要的所有 iBeacon。在每个循环中,我尝试将 NSString 放入 NSUUID 中,如下所示:
NSString *uuid = [[NSString alloc] initWithFormat:iBeacon[@"UUID"]];
NSLog(@"UUID = %@",uuid);//first log
NSUUID *proximityUUID = [[NSUUID UUID] initWithUUIDString:uuid];
NSLog(@"proximityUUID = %@",proximityUUID);//Second log
当我查看我的日志时,我看到:
UUID = 5A4BCFCE-174E-4BAC-A814-092E77F6B7E5
proximityUUID = <__NSConcreteUUID 0x16ec5db0> 5A4BCFCE-174E-4BAC-A814-092E77F6B7E5
我想那个UUID等于proximityUUID,不明白为什么<__NSConcreteUUID 0x16ec5db0>
要加?
谢谢你。