Tag: Apple Watch
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 August 29, 2016
by Steven Lipton
2 Comments
How does the Apple Watch communicate to the user when they are not looking at the watch face? That is done with haptics. Haptics are sounds and taps letting the user know something is happening. In this lesson, I’ll explain to you how to use haptics… Continue Reading “Make a WatchOS 3 Haptic Catalog with a Picker”
Category: GUI, Hey Cool MAN!!, iOS10, Swift Programming, Tutorial, Watch OS3, WatchKitTags: Apple Watch, caption, Catalog, current, Haptic, iOS 10, Picker, play, refrence, Taptic, title, WatchOS 3, WKInterfaceDevice, WKInterfacePicker
Posted on August 22, 2016
by Steven Lipton
10 Comments
[Updated for WatchOS5 Beta 6/22/18] On the Apple Watch, the digital crown seems to be a great way to control your watch. the Slider and picker controls do use it, but direct developer use was prohibited in Watch OS2. In a nice change, Watch… Continue Reading “Accessing the Digital Crown in WatchOS5”
Posted on May 1, 2016
by Steven Lipton
2 Comments
Even if you never want to make an app for the Apple Watch, there’s one place you might want to think about supporting: Notifications. In a previous lesson, we explored how to make local notifications for iOS devices. That lesson ended with a free… Continue Reading “Adding Actions to iOS and WatchOS Local Notifications”
Posted on April 4, 2016
by Steven Lipton
Leave a Comment
In last week’s tutorial of this series, we made a simple dynamic table for the Apple Watch and demonstrated static scrolling tables.Based on some running pace data, we displayed the pace I ran at the mile splits. Many apps will need more than what… Continue Reading “The Complete Table Tutorial for WatchOS2”
Category: GUI, iOS9, Swift Programming, WatchKitTags: add, Apple Watch, delete, delete rows, menus, multi-row, rowtypes, setRowTypes, subtotal, table, tables, text input, watch
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 4, 2016
by Steven Lipton
2 Comments
It is a myth that using apps on an Apple watch requires a phone. This was true of Watch OS1, but not true of its successor OS. Granted, you still need a phone to load apps, but standalone apps are possible. With the introduction… Continue Reading “How To Make Your First WatchOS2 App”
Category: Swift, Swift Programming, Tutorial, WatchKitTags: Apple Watch, apps, emoji, emoji color, emoji tkin tone, simulator slow, simulator startup, watch, Watchkit, WatchOS2, WatchOS2.2
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