Tap guyButton before pressing the device's home button, thus sending the app to the background.
Now, using the companion OS X app, start the beacon entitled Chapter 5: The hot guy, as shown in the upcoming figure. You should be presented with a push notification.
Start the app, and you should see the distance being updated in distanceBarButtonItem.
Press the home button again before turning off the beacon in the companion app.
Overview of this book
Table of Contents (16 chapters)
About the Author
About the Reviewers
Welcome to iBeacon
Detecting Beacons – Showing an Advert
Broadcasting Advertisements – Sending Offers
Ranging Beacons – Hunting for Treasure
Detecting Beacons in the Background – Location Dating
Leaving Regions – Don't Forget Your Stuff
Vendor SDKs – Buying and Configuring Beacons
Advanced Tutorial – iBeacon Museum
iBeacon Security – Understanding the Risks