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

Getting started with building our app


Consider the following steps to build our app:

  1. Fire up Xcode and create a new project. Choose Single View Application from the list of templates, and when prompted, use the following values for the new project:

    • Product Name: TreasureHunt

    • Organization Name: Learning iBeacon

    • Company Identifier: com.learning-ibeacon

    • Class Prefix: LI

    • Devices: Universal

  2. We'll need the Core Bluetooth and Core Location frameworks, so go ahead and add them to the project too. If you need help with this, refer to Chapter 3, Broadcasting Advertisements – Sending Offers.

Drawing our initial views

We'll be using storyboards this time round to create our views. We'll write each controller separately, but to get us started, we'll create stubs for these controllers so that we can set up our storyboards. Execute the following steps:

  1. Start by creating two new Objective-C classes and subclass them from UIViewController. Call these classes LITreasureViewController and LIHunterViewController...