Tag: timer

Timer Accuracy in iOS

It’s buried in the docs, so you might not know how inaccurate Timer objects can be if you are trying to show the time. Let’s look at that inaccuracy and how to work around it. You’ll find in the exercise file on GitHub a… Continue Reading “Timer Accuracy in iOS”

Swift Swift: Using NSTimer to Make a Timer or Alarm

With the launch of the Apple Watch it’s time for timers in iOS and WatchKit. Learning to use timers is a very important skill for most developers. There are many places we need to schedule regular intervals of time to do things. In my… Continue Reading “Swift Swift: Using NSTimer to Make a Timer or Alarm”

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… Continue Reading “Swift WatchKit Tutorials: Programming Buttons, Switches and Timers for Apple Watch”

Swift WatchKit Tutorials — A Basic Watch Kit App

Like a lot of people I ordered my Apple watch on April 10th, and now have to wait until June for it to arrive. I’m excited about the possibilities of the watch. I’m excited about writing applications for the watch, and I’m excited about sharing… Continue Reading “Swift WatchKit Tutorials — A Basic Watch Kit App”

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… Continue Reading “Living without Storyboards: Make a Working Stopwatch in Sprite Kit”

SlippyFlippy 1.1: How to make a Countdown Timer in Sprite Kit.

The next item on the update project list is making a countdown timer.  For those who haven’t read earlier episodes of this blog, there is a bug I cannot find. For a very small number of users, the game ends immediately when starting in… Continue Reading “SlippyFlippy 1.1: How to make a Countdown Timer in Sprite Kit.”