Tag: NStimer

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”

How to Use Watch Timers and NSTimers in WatchOS2 and Swift

There’s a legacy from WatchOS1 which is not only frustrating but deceptive. While one would think that a watch would have easy to use built in timers, that is far from the case. WatchOS2 changed this situation slightly, but still makes timekeeping not as… Continue Reading “How to Use Watch Timers and NSTimers in WatchOS2 and Swift”

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 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… Continue Reading “Swift WatchKit Tutorial: Coding Timers and NSTimer on Apple Watch”