Take advantage of iPhone and iPad sensors and advanced geolocation technologies to build state-of-the-art location applications. In this concise hands-on guide, author Alasdair Allan (Learning iOS Programming) takes you deep inside Apple’s Core Location framework, Map Kit, and other iOS tools, using illustrative examples and sample Objective-C code. Learn how to build location-aware apps for both iPhones and iPads, using code that detects hardware features and then adjusts your app’s behavior.
If you’re a programmer with iOS experience, or a Mac developer familiar with Objective-C, this book helps you get off to a solid start in location-based app development.
You’ll learn about:
- Core Location:Understand the significant-change location service and geo-fencing capabilities
- Map Kit:Embed maps into your application’s views
- Magnetometer:Use the on-board sensor as a digital compass
- Geocoding capabilities:Translate geographic coordinates into place names, and vice versa
- Heat maps:Get a code walkthrough for displaying these maps on top of a standard MapKit view
- Third-party SDKs:Add unique geo-location capabilities to your app from SkyHook Wireless, MapBox, and other providers
Preface;Who Should Read This Book?;What Should You Already Know?;What Will You Learn?;Whats In This Book?;Conventions Used in This Book;Using Code Examples;Safari? Books Online;How to Contact Us;Acknowledgments;Chapter 1: Introduction;1.1 Hardware Support;1.2 Detecting Hardware Differences;1.3 Setting Required Hardware Capabilities;Chapter 2: Core Location;2.1 The Standard Location Service;2.2 Significant Location Monitoring;2.3 Region Monitoring;Chapter 3: Map Kit;3.1 Adding a Map;3.2 Annotating Maps;3.3 Adding Overlays;Chapter 4: Digital Compass;4.1 About the Magnetometer;4.2 Writing a Compass Application;Chapter 5: Geocoding;5.1 Reverslƒe