quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

NSScreencast Episode #95 Fun with iBeacons

Fun with iBeacons - NSScreencast

デバイスとの距離が離れるごとに背景の色を変える

  • iBeacon - bluetooth
  • beacon emitter lgaches/BeaconEmitter · GitHub
  • turn ibeacon on
    • uuid, identifier, major, minor
    • linked library
      • core location
      • #import <CoreLocation/CoreLocation.h>
  • CLLocationManager
    • CLBeaconRegion initWithProximityUUID
    • region.
      • notifyOnEntry
      • notifyOnExit
      • notifyEntryStateOnDisplay
    • viewDidLoad
      • [self.locationManager startMonitoringForRegion:region];
      • [self.locationManager requestStateForRegion:region];
  • CLLocationManagerDelegate
    • didDetermineState
    • didEnterRegion
    • didExitRegion
    • stringForProximity
      • CLProximityUnknown
      • CLProximityFar
      • CLProximityNear
      • CLProximityImmediate
    • didRangeBeacons
      • [self setColorForProximity:beacon.proximity];
  • run on device
    • reflector

Beacon調べるとPayPal Beacon良く出てくる