Tag: Buttons
-
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 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…
-
Swift WatchKit Tutorials: Programming Buttons, Switches and Timers for Apple Watch
Once you start connecting outlets and actions for an Apple Watch you realize this is not your friendly neighborhood iOS app. There are controls that look familiar in storyboard, but are far from the same in code. In this lesson, you’ll learn about the familiar button and switch from iOS in a WatchKit setting, where…
-
Swift WatchKit Tutorials: Using Groups in WatchKit
WatchKit is not UIKit. How you program for Apple watch differs greatly from how you program a iPhone or iPad. There are controls that look familiar, but act very differently. In this lesson you’ll learn about groups, a layout mechanism which is, but should not be, compared to subviews. We’ll also introduce glances and notifications,…
-
Living without Storyboards: Make a Working Stopwatch in Sprite Kit
Over the last few posts we’ve made a clock and stopwatch application in Sprite Kit. Last time, we added an animated button display for the stopwatch. This time we get the stopwatch buttons working. Get Our Variables in Order We will use several variables in our changes. Change our variables to the following: We changed…
-
From Apple to Raspberry Pi: Making Icons and Cool Buttons
If there is one thing that Apple developers believe, user interfaces needs to look cool. Looking cool often requires not text, but images on your on your controls. While not as robust as UIView and its subclasses, Tkinter does display graphics. We can add buttons that look a lot better than the standard buttons. Make…