Tag: WatchOS
We are once again getting close to the time for Apple’s World Wide Developers conference, and like every year, the press is busy trying to predict and preview what is ahead for the first week in June. Once again, they will completely miss the… Continue Reading “A Developer Preview of WWDC 2018”
Posted on February 14, 2017
by Steven Lipton
11 Comments
Apple packed a lot of sensors into the small packages that are iOS devices. You as a developer can detect movement in three dimensions, acceleration, rotations, and impact and use those in your applications. All of this brought to your application in the CoreMotion framework. CoreMotion… Continue Reading “Introducing Core Motion: Make A Pedometer”
Posted on September 23, 2016
by Steven Lipton
8 Comments
About two years ago someone asked me a very good question: Why do we need delegates for UIViewControllers? He thought Swift made things easier, but this delegate stuff seems very complicated. Shouldn’t we be able to send a message or initializer between classes? When… Continue Reading “Why do we need Delegates in iOS and WatchOS?”
Category: iOS10, Swift Programming, Tutorial, Watch OS3Tags: Apple Watch, controller, delegates, delegation, model, MVC, protocol, swift, view, view controller, WatchOS, Why do we need delegates, Why do we need MVC
Posted on March 21, 2016
by Steven Lipton
1 Comment
One of the most powerful and important controls on both wearable and mobile devices are table views. Table views come in two flavors: static and dynamic. Dynamic table views read data from a collection type and displays it. Static tables allow for a vertical… Continue Reading “Tables and Scroll Views in WatchOS2”
Category: Swift Programming, Tutorial, WatchKitTags: Apple Watch, dynamic, ios8, ios9, Programming Apple watch, scroll views, static, swift, tables, Watchkit, WatchOS, WatchOS2, WKInterfaceTable
Posted on March 4, 2016
by Steven Lipton
Leave a Comment
It’s rare to have a one controller application, even in something as small as the Apple watch. Multiple View Controllers, or Interface Controllers as they are called in WatchKit, need ways to move between controllers. WatchOS2 has a simplified version of the iOS navigation… Continue Reading “Using WatchOS2 Navigation in Swift”
Category: GUI, ios8, iOS9, Swift, Swift Programming, Tutorial, WatchKitTags: Apple Watch, awakeWithContext, contextForsegueWithIdentifier, modal, navigation, pages, presentControllerWithName, presentControllerWithNames, programmatic, pushControllerWithName, WatchOS, WatchOS2, WatchOS2.2, WatchOS2.3
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 August 26, 2015
by Steven Lipton
Leave a Comment
In the last lesson we created a multi-row table. However, we can only view the table, not select from the table. Multi-row tables provide some challenges with selection. Along the way, we’ll make a new interface to display selected information, using a technique we… Continue Reading “Swift WatchKit: Selecting With Multiple Rows in Apple Watch”
Category: ios8, iOS9, Swift, Swift Programming, WatchKitTags: Apple Watch, apps, context, dictionary, index, Programming, row, select row at index, select rows, selection, swift, table, table:didSelectRowAtIndex:, Watchkit, WatchOS
Posted on July 8, 2015
by Steven Lipton
2 Comments
Menus are cool. Since the first interactive program, there have been menus in applications. The Apple Watch is no exception, but has no space to put a menu. To solve this problem, Apple uses the new force touch gesture to pop open a menu.… Continue Reading “Swift Watchkit: Adding Context Menus”
Category: Swift, Tutorial, WatchKitTags: Apple, Apple Watch, camera icon, force touch, icon size, icon specifications, icons graphics, image set, image sets, menus, Watchkit, WatchOS
Posted on June 10, 2015
by Steven Lipton
3 Comments
In the first part in this series we implemented a modal interface in WatchKit with a segue. In this part we’ll present the modal programmatically and once again set up a delegate and context for moving data between controllers. Open the project from the… Continue Reading “Swift WatchKit: Working with Modal Views Part 2: Presenting Programmatically”
Category: ios8, Swift, Tutorial, WatchKitTags: Apple Watch, awakeWithContext, Buttons, context, delegate, dismissController, glance, groups, layout, modal, Notification, presentController, programmatic presentation, Programming Apple watch, Story Board, storyboard, swift, Watchkit, watchkit delegate, WatchOS
Posted on June 10, 2015
by Steven Lipton
Leave a Comment
In case you did not hear about the WWDC15 keynote, Apple announced that WatchKit is now part of WatchOS2, implemented in the Xcode 7 beta. WatchOS2 has several major differences to WatchKit, most importantly native execution of apps on the watch. For the watchkit… Continue Reading “The Beta Blues with the Apple Watch”