是否可以通过setValue forKey
将数组添加到CLBeaconRegion
?通过setValue forKey将NSArray添加到CLBeaconRegion导致错误
我试着添加:
[regionAdvert setValue:haveArray forKey:@"advertArray"];
但我只收到以下错误:
> Terminating app due to uncaught exception 'NSUnknownKeyException',
> reason: '[<CLBeaconRegion 0x15379600> setValue:forUndefinedKey:]: this
> class is not key value coding-compliant for the key advertArray.'
你想关联一个任意对象与该区域? – Wain
所以,这是不可能的?我很困惑,因为Xcode向我暗示了这一点。 :S – Christian
为什么不使用'major','minor'属性来标识区域? – Wain