PRODUCT SUPPORT ANNOUNCEMENT
Some videos and Web Editions may be returning errors on launch. Learn more.
This eBook includes the following formats, accessible from your Account page after purchase:
EPUB The open industry format known for its reflowable content and usability on supported mobile devices.
MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.
PDF The popular standard, used most often with the free Adobe® Reader® software.
This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.
Create Breakthrough Apple Watch Apps with the WatchKit Framework
With its Apple Watch and WatchKit framework, Apple is challenging developers to build exciting and innovative apps for Apple Watch. iOS developers who master Apple Watch programming now will have the same huge “early mover” advantage that early iPhone developers enjoyed. Learning WatchKit Programming is a complete, hands-on tutorial for all iOS developers who are ready to design and build tomorrow’s hottest new wearable apps.
Leading iOS development trainer and author Wei-Meng Lee covers all of the fundamentals of Apple Watch development and the WatchKit API, from application architecture and design to navigation, notification, and glances. Using practical Swift code examples designed for clarity and simplicity, Lee guides you through building apps from the ground up and shows you how to integrate those apps with the iPhone for expanded capabilities.
The perfect companion to other mobile development books in the Learning Series, this guide helps you extend your iOS skills to a whole new environment, build apps that solve a new set of problems, and reach millions of people in the new Apple Watch marketplace
All of this book’s sample Swift code is available for download at informit.com/title/9780134195445.
Download the sample pages (includes Chapter 2 and Index)
About the Author xix
Chapter 1: Getting Started with WatchKit Programming 1
Specifications of the Apple Watch 1
Getting the Tools for Development 2
Understanding the WatchKit App Architecture 3
Types of Apple Watch Applications 6
Hello, World! 6
Chapter 2: Apple Watch Interface Navigation 17
Interface Controllers and Storyboard 17
Navigating between Interface Controllers 22
Chapter 3: Apple Watch User Interface 45
Responding to User Interactions 45
Displaying Information 65
Gathering Information 82
Laying Out the Controls 86
Force Touch 91
Chapter 4: Interfacing with iOS Apps 99
Communicating between the WatchKit App and the Extension 113
Chapter 5: Displaying Notifications 149
What Is a Notification? 149
Types of Notifications on the Apple Watch 152
Chapter 6: Displaying Glances 179
What Is a Glance? 179
Making the App Useful 186
Updating the Glance 192