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

Chapter 3. Exploring WatchKit Controls

In this chapter, you will learn how to build a simple guessing game application for Apple Watch that will allow the watch to randomly generate a number and have the user try and guess the number. You will learn how to use Interface Builder to create the visual user interface for our application using some of the controls that come as part of the WatchKit platform.

You will learn how to customize each of the control objects by interrogating their properties using Attributes Inspector and then learn how to create connections with each of our controls using Outlets so that we can access their getters and setters through code. You will also learn how to create Actions to control objects, which are basically events that are called when a user performs an action.

To end the chapter, you will learn how to compile, build, and run the Guessing Game application using the watchOS simulator so that you can test the app and ensure that everything is working correctly...