我必須使用的NSSet與CLRegion對象
NSMutableSet *regionSet = [NSMutableSet setWithCapacity:regionChunks.count];
CLRegion *region = [[CLRegion alloc] initCircularRegionWithCenter:coordinate radius:radius
identifier:regionString];
[regionSet addObject:region];
獲得兩套一個使用
NSMutableSet *monitoredRegionSet = [[locationManager monitoredRegions]mutableCopy];
和其他所得。當我嘗試設置它們之間不works.Should我操作實現一個CLRegion類別並實現isEqual:和hash:方法。是否有更好的方法來做到這一點。
[monitoredRegionSet intersectSet:regionSet];
[monitoredRegionSet minusSet:regionSet];
什麼「在它們之間設置操作」? – trojanfoe 2013-05-12 16:08:34
我試過minusSet:和intersectSect:但都沒有工作。 – agupta 2013-05-12 16:22:29
你可以發佈代碼與操作? – danypata 2013-05-12 16:43:09