I'm developing a beacon app which has a tour mode option. So when the user taps the switch to turn on the tour, I'm creating beacon regions and using below code I'm listening for beacons
NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:beacon.beaconID];
CLBeaconRegion *region = [[CLBeaconRegion alloc] initWithProximityUUID:uuid major:[beacon.major integerValue] minor:[beacon.minor integerValue] identifier:beacon.identifier];
[self.locationManager startMonitoringForRegion:region];
region.notifyEntryStateOnDisplay = YES;
region.notifyOnEntry = YES;
region.notifyOnExit = YES;
[self.locationManager startRangingBeaconsInRegion:region];
Now to stop the ranging, I know I have to use
[self.locationManager stopRangingBeaconsInRegion:region];
But how do I get the same CLBeaconRegion created for monitoring? Should I save the CLBeaconRegion in an array?