Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning ibeacon

You're reading from  Learning ibeacon

Product type Book
Published in Nov 2014
Publisher
ISBN-13 9781784397128
Pages 196 pages
Edition 1st Edition
Languages
Author (1):
Craig Gilchrist Craig Gilchrist
Profile icon Craig Gilchrist

Table of Contents (16) Chapters

Learning iBeacon
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
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 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}