Created
February 20, 2014 11:34
-
-
Save MasahiroSakoda/9111682 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)locationManager:(CLLocationManager *)manager didRangeBeacons:(NSArray *)beacons inRegion:(CLBeaconRegion *)region { NSString *message = nil; | |
for (CLBeacon *beacon in beacons) { | |
switch (beacon.proximity) { | |
case CLProximityImmediate: | |
message = @"CLProximityImmediate"; | |
break; | |
case CLProximityNear: | |
message = @"CLProximityNear"; | |
break; | |
case CLProximityFar: | |
message = @"CLProximityFar"; | |
break; | |
case CLProximityUnknown: | |
break; | |
default: | |
break; | |
} | |
} | |
NSLog(@"%@", message); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment