Book Image

Learning ibeacon

By : Craig Gilchrist
Book Image

Learning ibeacon

By: Craig Gilchrist

Overview of this book

Table of Contents (16 chapters)
Learning iBeacon
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Our application


Our app operates in two modes, as shown in the following figure. Both the treasure and hunter modes have independent view controllers to encapsulate their functionality. Our root view controller (LIViewController) simply allows us to choose the mode we want to run.

Treasure hunt app view controllers

If you don't have two iOS devices at hand, don't worry; we can use the companion app to broadcast as our treasure beacon, as shown in the following figure. Unfortunately, you can't perform Bluetooth interactions in the simulator. So, unless you have two devices, you'll only be able to test the hunter.

Using the companion app as the treasure