Find the Specific iBeacon UUID, Major and Minor

May I know how to find the specific beacon with UUID, Major and Minor value when the devices is in the didEnterRegion function? This is because I’ve 3 Estimote iBeacon now, I just want to detecting one of it, so I’ve set them have the specific Major and Minor. But how do I find the specific beacon when I’ve enter the region with Major and Minor?

You can do this by defining one beacon region per each beacon:

let region1 = CLBeaconRegion(proximityUUID: myUUID, major: 123, minor: 456, identifier: "my green beacon")
let region2 = CLBeaconRegion(proximityUUID: myUUID, major: 223, minor: 556, identifier: "my blue beacon")


// ...

func beaconManager(manager: AnyObject!,
                   didEnterRegion region: CLBeaconRegion!) {
  NSLog("major = \(region.major), minor = \(region.minor)")

The only thing to keep in mind is, you can only monitor up to 20 beacon regions at a time (iOS limitation). Once you grow past 20 beacons, you’ll need to apply some other tricks (;