我有两套使用获得的一套
NSMutableSet *monitoredRegionSet = [[locationManager monitoredRegions]mutableCopy];
另一个是使用
NSMutableSet *regionSet = [NSMutableSet setWithCapacity:regionChunks.count];
CLRegion *region = [[CLRegion alloc] initCircularRegionWithCenter:coordinate radius:radius
identifier:regionString];
[regionSet addObject:region];
当我尝试在它们之间设置操作时,它不起作用。我是否应该实现一个 CLRegion 类别并实现 isEqual: 和 hash: 方法。是否有更好的方法来做到这一点。
[monitoredRegionSet intersectSet:regionSet];
[monitoredRegionSet minusSet:regionSet];