Home Page Icon
Home Page
Table of Contents for
Images
Close
Images
by Mark Goody, Maurice Kelly
Build watchOS Apps: Develop and Design
Title Page
Copyright Page
Dedication Page
Acknowledgments
About the Authors
Contents
Introduction
The Watch of Our Dreams
The Apple Watch of Our Realities
About This Book
How to Use This Book
Organization
Code Samples
Text Formats
Software Versions
Welcome to watchOS
Part I: Getting Started
Chapter 1. Creating a WatchKit Project
Lifelong Companions
Adding Code to Your WatchKit App
Updating the Watch Interface
Writing Code for the Watch App
“I’m Sorry, But I Don’t Have a Watch”
What Do You Want to Test?
Trying Out HelloWrist!
Wrapping Up
Chapter 2. Anatomy of a watchOS App
Apps and Extensions
What Is a WatchKit App?
What Is a WatchKit Extension?
Why Do We Need This Convoluted System?
WatchKit App Project Layout
Creating WatchKit Apps and Extensions
Using Project Templates
Using Target Templates
Using Old-School Techniques
Wrapping Up
Chapter 3. Implementing Navigation
Navigating the Apple Watch
Navigation Types
Page-based Navigation
Hierarchical Navigation
The WKInterfaceController
The Circle of Life
Supporting Navigation
The Context Menu
And So Much More
Wrapping Up
Chapter 4. Exploring Controls
House Rules
WatchKit Controls
Simple Display Controls
Interactive Controls
Structural Controls
User Input
Wrapping Up
Part II: Creating Apps
Chapter 5. Designing Your App’s User Interface
Thinking About Design
Meeting the Challenge
“Phenomenal Cosmic Power, Itty-Bitty Living Space”
Tap Targets, Fat Fingers, and Small Screens
Bringing a Little Color
Be Prepared
Gesture and Touch
Wrapping Up
Chapter 7. Working with Complications
Introducing Complications
Timelines and Time Travel
Complicated Arrangements
Adding Complications
Including a Complication in a New App
Adding a Complication to an Existing App
Including Image Assets
ClockKit
Timeline Settings
Complication Timeline Entries
Providing Timeline Entries
Testing Complications
Creating the Test Scheme
Running the Test Scheme
Triggering Complication Updates
Update Methods
Budgeting
Wrapping Up
Chapter 8. Working with Glances
What Is a Glance?
Manufacturing a Glance
Creating a Glance in a New Project
Adding a Glance to an Existing Project
Developing the Glance
Visual Customization
Working with WKInterfaceController
Sneaking a Glance
Wrapping Up
Chapter 9. Working with Notifications
What Are Notifications?
iPhone Notifications
Watch Notifications
Creating a Notification Scene
Creating a Notification in a New Project
Adding a Notification to an Existing Project
Designing Your Notifications
Notification Layout
Static Notifications
Dynamic Notifications
The WKUserNotificationInterfaceController
Testing Notifications
Notification Payloads
Notification Test Schemes
Actioning Notifications
Tapping the Notification
Text Responses
Local Notifications
Wrapping Up
Part III: Making the Most of the Platform
Chapter 10. Communicating with the Outside World
Network Requests with NSURLSession
The Watch and the Network
Making the Request
Handling Premature Deactivation
Talking to the Phone with WatchConnectivity
Background Transfer
Live Message Transmission
Making the Most of Inter-Device Communication
Continuing User Activity with Handoff
Wrapping Up
Chapter 11. Accepting User Input
Speech to Text
The Text Input Controller
Input Types
Trying Out the Interface
Preparing Suggestions
Input from Notifications
Wrapping Up
Chapter 12. Playing and Recording Media
Working with Media
Media Types and Encodings
Storing Media
Foreground Playback
Using WKInterfaceMovie
Presenting a Player Programmatically
Background Audio Playback
Audio Recording
Making a Recording
Handling Recorded Audio
Wraapping Up
Chapter 14. Using Hardware APIs
Using Sensor Data
Accessing Heart Rate Data via HealthKit
Reading Accelerometer Data with CoreMotion
Providing Haptic Feedback
Playing with Haptics
Tap Carefully
Wrapping Up
Chapter 15. Shipping Your WatchKit App
Preparing Your App for Distribution
Device Support
Icons and Image Resources
Back to the Developer Center
iTunes Connect
Creating an App Record
Uploading Your App
Distributing the App
TestFlight Distribution
App Store Distribution
Wrapping Up
Index
Code Snippets
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Code Snippets
Next
Next Chapter
Images
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset