Category: WatchKit
-
The Beta Blues with the Apple Watch
In case you did not hear about the WWDC15 keynote, Apple announced that WatchKit is now part of WatchOS2, implemented in the Xcode 7 beta. WatchOS2 has several major differences to WatchKit, most importantly native execution of apps on the watch. For the watchkit lessons I’ve been posting, I’m assuming watchkit 1, and will not […]
-
Swift Watchkit: Working with Modal Views Part 1: Segue with a Delegate
Modal views on iPhones and ipads are used for input of information that requires attention. One of the on the Apple Watch is a modal view. You cannot mix a page-based interface with a hierarchical (i.e. navigation) interface as we learned in previous lessons. You can use modal interfaces with either. In this series of […]
-
Swift WatchKit: Introducing Navigation to the Apple Watch(Part 4: Dismissals and Segues)
In our lessons setting up navigation controllers on the Apple Watch, we’ve learned how to set up the storyboard, how to use push controllers programmatically and introduced sending data to another controller and back using contexts and delegates. In this lesson, we’ll pass data when you have a segue and learn how to dismiss controllers. […]
-
Swift WatchKit: Introducing Navigation to the Apple Watch(Part 3: Using Delegates and Contexts)
In our last lesson we set up navigation in the Storyboard and programmatically. We left off with passing data from one view controller to another using the context parameter like this: We made a context variable which we passed to the destination controller. We haven’t done anything yet with the value of the context. In […]
-
Swift WatchKit: Introducing Navigation to the Apple Watch(Part 2: Hierarchical Interfaces)
Apple WatchKit gives you a choice when it comes to navigation. You can be Page-based as we introduced in our last lesson. Another alternative, is hierarchical interfaces, which closely resemble navigation controllers on the phone. In this lesson, we’ll introduce the hierarchical type of navigation by setting up a small app. Hierarchy Controllers Pages are […]
-
Swift WatchKit: Introducing Navigation to the Apple Watch(Part 1: Page Interfaces)
The Simulator for WatchKit is the worst part of Xcode. It’s horribly buggy, and has one particular bug that freezes or kills your running app very often. I had a hard time figuring this out, but once I found one place that discussed it, the number of people with the same issue surprised me. Apparently […]
-
Swift WatchKit: Using Images on an Apple Watch(Part 2: Code)
In our last lesson we did the layout for a watch app that included images. However, we did not yet code those images. In this lesson we’ll add the code to the application to change a button background and show images. If you have not done so, head over to here to get the application […]
-
Swift WatchKit: Using Images on an Apple Watch (Part 1: Storyboard)
Goodbye Emoticons! Up to this point in our lessons for programming Apple Watch we’ve used emoticons for graphics. It’s time to introduce true images to our WatchKit apps. There are two ways to use graphics. We’ll discuss adding images to Buttons, Groups, and Interface controller and the slider’s min and max icons. We’ll also use […]
-
Swift WatchKit: Programming Sliders on the Apple Watch
In the last few lessons, we’ve covered some of the controls a developer can use in an Apple Watch app. As we’ve learned, we do not have full access to the properties of the controls. Instead, we have a few attributes we can only control through the story board, a single action method for some, […]
-
Swift WatchKit Tutorial: Coding Timers and NSTimer on Apple Watch
There is a horrible secret in WatchKit with many implications for those programming for the Apple watch. There is also a secret many people do not get about Apple’s corporate address. There two secrets are interestingly related. In WatchKit, There are no properties in the controls — you do everything with a method. This is […]