CLBeaconRegion *beaconRegion = [[CLBeaconRegion alloc] initWithProximityUUID:proximityUUID identifier:identifier]; // Register the beacon region with the location manager. [self.locManager startMonitoringForRegion:beaconRegion];
{ if ([beacons count] > 0) { CLBeacon *nearestExhibit = [beacons firstObject]; // Present the exhibit-specific UI only when // the user is relatively close to the exhibit. if (CLProximityNear == nearestExhibit.proximity) { [self presentExhibitInfoWithMajorValue:nearestExhibit.major.integerValue]; } else { [self dismissExhibitInfo]; } }