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 starter project where I’ve put together a demo app with three…
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 WatchKit series I’m writing a workout interval timer which tells the…
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 hard mode. This might just be a user problem not moving…