Book Image

Apple Watch App Development

By : Steven F. Daniel
Book Image

Apple Watch App Development

By: Steven F. Daniel

Overview of this book

With the increasing amount of new wearable devices hitting the market, wearables are the next wave of mobile technology. With the release of Apple's WatchKit SDK, a whole new world of exciting development possibilities hasopened up. Apple Watch App Development introduces you to the architecture and limitations of the Apple Watch platform, followed by an in-depth look at how to work with Xcode playgrounds. Here, we'll introduce you to the Swift programming language so you can quickly begin developing apps for the Apple Watch platform with the WatchKit framework and the Xcode Development IDE. We then discuss more advanced topics such as Notifiations, Glances, Closures, Tuples, Protocols, Apple pay, and using Swift playgrounds, with each concept backed up with example code that demonstrates how to properly execute it. We also show you how to package and deploy your Watch application to the Apple AppStore. By the end of this book, you will have a good understanding of how to develop apps for Apple Watch platform using the WatchKit framework and Swift 2.0.
Table of Contents (19 chapters)
Apple Watch App Development
About the Author
About the Reviewer

Introduction to working with WatchKit glances

Before we can begin adding and using glances within our Shopping List application, we need to get a better understanding of how they work within the WatchKit framework. We did talk a bit about this in an earlier chapter, Chapter 2, Understanding Apple Watch, so much of this will be quite similar.

In the next section, we will talk a bit about the glance controller life cycle, and you will note that the glance controller inherits all of the existing functionalities of the WKInterfaceController class and contains a variety of methods and calls that help determine whenever a glance becomes active or the controller context instance becomes awake.

Understanding the glance controller life cycle

The WatchKit glance interface controller is initialized at an early stage within your application so that it can be delivered to the user much more quickly. The glance interface controller is basically pretty much the same as any other view controller that comes...