Posted on August 15, 2018
by Steven Lipton
Leave a Comment
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”
Posted on February 19, 2016
by Steven Lipton
Leave a Comment
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”
Category: iOS9, Swift, Swift Programming, Tutorial, WatchKitTags: formatting NSTimeInterval, ios9, NSTimeInterval, NStimer, update loop, WachKit, WatchOS, WatchOS2, WKInterfaceTimer
Posted on April 24, 2015
by Steven Lipton
17 Comments
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”
Category: ios8, Swift Programming, Swift Swift, TutorialTags: Alarm clock, App Programming, Apple swift, autolayout, countdown timer, formatting NSTimeInterval, iPhone Programming, NSTimeInterval, NStimer, stopwatch, swift, swift programming, timer, Timer loop, timers in Swift, Xcode
Posted on April 20, 2015
by Steven Lipton
10 Comments
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”
Category: ios8, Swift, Swift Programming, Tutorial, WatchKitTags: Apple Watch, Buttons, glance, groups, layout, Notification, NStimer, Programming Apple watch, Story Board, storyboard, swift, timers, Watchkit, working countdown timer