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 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 17, 2015
by Steven Lipton
1 Comment
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”
Category: ios8, Swift Programming, Tutorial, WatchKitTags: Apple Watch, Buttons, groups, layout, Programming Apple watch, Story Board, storyboard, swift, switch, timer, Watchkit, WKInterface, WKInterfaceButton, WKInterfaceTimer
Posted on April 12, 2015
by Steven Lipton
1 Comment
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”
Category: GUI, ios8, Swift Programming, Tutorial, WatchKitTags: Apple Watch, button, date, date object, emoji, hello world, hierarchy, interface controller, label, model view controller, MVC, navigation, navigation controller, NSdateformatter, position, segue, swift, timer, Watchkit
Posted on May 22, 2014
by Steven Lipton
1 Comment
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”
Category: GUI, ios7, Sprite Kit, TutorialTags: App Programming, Buttons, GUI, iOS7, sprite, Sprite Kit, sprite kit button, sprite kit UIButton, SpriteKit, stopwatch, timer, User interface
Posted on April 10, 2014
by Steven Lipton
12 Comments
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.”