Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning ibeacon

You're reading from   Learning ibeacon

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781784397128
Length 196 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Craig Gilchrist Craig Gilchrist
Author Profile Icon Craig Gilchrist
Craig Gilchrist
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Welcome to iBeacon FREE CHAPTER 2. Detecting Beacons – Showing an Advert 3. Broadcasting Advertisements – Sending Offers 4. Ranging Beacons – Hunting for Treasure 5. Detecting Beacons in the Background – Location Dating 6. Leaving Regions – Don't Forget Your Stuff 7. Vendor SDKs – Buying and Configuring Beacons 8. Advanced Tutorial – iBeacon Museum 9. iBeacon Security – Understanding the Risks Index

Building the application


Now that we've fully explained our app and all of its features, let's build it!

Creating the project

Follow these steps to create the project:

  1. Start by firing up Xcode and choosing a single view application from the templates when prompted.

  2. Enter the following options for your new project:

    • Product Name: iBeacon Museum

    • Organization Name: Learning iBeacon

    • Product Identifier: com.learningibeacon

    • Devices: iPhone

  3. Before we begin coding, let's start by setting our project properties. Open up the project properties by clicking on the top-level project in Project Navigator, and then under Deployment Info ensure that you turn on the Hide status bar option. Also ensure that our iPhone app can only be displayed in portrait mode by ensuring that only Portrait is checked in the Device Orientation option.

  4. We're going to be displaying a lot of Wikipedia content in our app so it makes sense to hide any other text when it's just content on the screen. Open the Info tab of our Properties...

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 $19.99/month. Cancel anytime
Banner background image