WatchOS 2 App Development Essentials
Table of Contents
- watchOS 2 Apps – An Overview
- Building an Example watchOS 2 WatchKit App
- An Overview of the watchOS 2 App Architecture
- An Example Interactive watchOS 2 App
- About the Example App
- Creating the TipCalcApp Project
- Adding the WatchKit App Target
- Designing the WatchKit App User Interface
- Reviewing the Interface Controller Class
- Establishing Outlet Connections
- Establishing Action Connections
- Implementing the sliderChange Action Method
- Implementing the calculateTip Action Method
- Hiding the Tip Label
- Removing the WatchKit App
- An Overview of WatchKit Tables in watchOS 2
- The WatchKit Table
- Table Row Controller
- Row Controller Type
- Table Row Initialization
- Implementing a Table in a WatchKit App Scene
- Adding the Row Controller Class to the Extension
- Associating a Row Controller with a Row Controller Class
- Creating Table Rows at Runtime
- Inserting Table Rows
- Removing Table Rows
- Scrolling to a Specific Table Row
- Summary
- A watchOS 2 WatchKit Table Tutorial
- About the Table Example
- Creating the Table Project
- Adding the Table to the Scene
- Creating the Row Controller Class
- Establishing the Outlets
- Connecting the Table Outlet
- Creating the Data
- Adding the Image Files to the Project
- Testing the WatchKit App
- Adding a Title Row to the Table
- Connecting the Outlet and Initializing the Second Table Row
- Implementing watchOS 2 WatchKit Table Navigation
- Table Navigation in WatchKit Apps
- Performing a Scene Transition
- Extending the TableDemoApp Project
- Adding the Detail Scene to the Storyboard
- Adding the Detail Interface Controller
- Adding the Detail Data Array
- Implementing the didSelectRow Method
- Modifying the awakeWithContext Method
- Adjusting the Interface Controller Insets
- watchOS 2 Page-based User Interfaces and Modal Interface Controllers
- A watchOS 2 WatchKit Page-based Interface Tutorial
- Creating the Page Example Project
- Adding the Image Files to the Project
- Designing the First Interface Controller Scene
- Adding More Interface Controllers
- Establishing the Segues
- Assigning Interface Controllers
- Adding the Timer Interface Controller
- Adding the Modal Segues
- Configuring the Context Data
- Configuring the Timer
- Playing the Haptic Effect
- Handling User Input in a watchOS 2 WatchKit App
- An Introduction to Watch Connectivity in watchOS 2
- Watch Connectivity Communication Options
- Application Context Mode
- User Information Transfer Mode
- File Transfer Mode
- Interactive Messaging Mode
- WatchConnectivity Session Creation
- Obtaining Session State Information
- The watchDirectoryURL Property
- Sending and Receiving Application Context Data
- Sending and Receiving User Information Data
- Transferring Files
- Sending and Receiving Interactive Messages
- Summary
- A watchOS 2 WatchConnectivity Messaging Tutorial
- About the Project
- Creating the Project
- Enabling Audio Background Mode
- Designing the iOS App User Interface
- Establishing Outlets and Actions
- Initializing Audio Playback
- Implementing the Audio Control Methods
- Initializing the iOS App Watch Connectivity Session
- Designing the WatchKit App Scene
- Initializing the WatchKit App Connectivity Session
- Sending the Message to the iOS app
- Handling the Message in the iOS app
- Testing the Application
- An Overview of watchOS 2 WatchKit Glances
- A watchOS 2 WatchKit Glance Tutorial
- A watchOS 2 WatchKit Context Menu Tutorial
- An Overview of WatchKit Context Menus
- Designing Menu Item Images
- Creating a Context Menu in Interface Builder
- Adding and Removing Menu Items in Code
- Creating the Context Menu Example Project
- Designing the WatchKit App User Interface
- Designing the Context Menu
- Establishing the Action Connections
- Testing the Context Menu App
- Working with Images in WatchKit and watchOS 2
- A watchOS 2 WatchKit Animated Image Tutorial
- A watchOS 2 WatchKit Dynamic Layout and Animation Tutorial
- Working with Fonts and Attributed Strings in watchOS 2
- A watchOS 2 App Custom Font Tutorial
- An Introduction to the watchOS 2 WatchKit WKInterfacePicker Object
- An Overview of the WKInterfacePicker Object
- Adding a Picker Object to a Storyboard Scene
- Understanding Picker Object Attributes
- Understanding Picker Object Styles
- Creating Picker Item Objects
- Setting the Currently Selected Item
- Coordinating Animations
- Requesting Focus for the Picker Object
- Enabling and Disabling a Picker Object
- Responding to Picker Changes
- A watchOS 2 WatchKit Picker Tutorial
- A WatchKit WKInterfacePicker Coordinated Animation Example
- About the Coordinate Image Picker Project
- Generating Radial Animations
- Creating the Example Project
- Designing the WatchKit App user Interface
- Adding the Picker Image Sequences to the Project
- Adding the Group Background Image Sequences to the Project
- Implementing the Picker Animation Sequence
- Configuring the Group Background Animation
- Testing the App
- Sharing watchOS 2 Media Files Using App Groups
- Playing Movies and Audio on watchOS 2 using the WKInterfaceMovie Class
- A watchOS 2 WatchKit Audio Recording and Playback Example
- The Audio Recording Controller
- Launching the Audio Recording Controller
- Using App Groups to Share Media File Access
- The Audio Recording and Playback Tutorial
- Designing the Main Storyboard Scene
- Creating and Joining the App Group
- Constructing the Save File URL
- Implementing the Recording Code
- Implementing the Playback Code
- Testing the WatchKit App
- An Overview of ClockKit and Apple Watch Complications
- What is a Complication?
- Complication Families and Templates
- The Complication Data Source
- Complication Timeline Entry Objects
- Complication Template Objects
- Text Provider Classes
- Image Provider Class
- Creating a Timeline Entry Object
- The Complication Data Source Delegate Methods
- Managing Complications with the CLKComplicationServer Object
- A watchOS 2 Complication Tutorial
- About the Complication Project
- Creating the Complication Project
- Configuring the Supported Complication Families
- Adding the Data and Image to the Data Source
- Implementing the Placeholder Delegate Method
- Configuring Travel Directions
- Adding a Timeline Entry Creation Method
- Specifying the Timeline Start and End Dates
- Providing the Current Timeline Entry
- Providing the Remaining Timeline Entries
- Adding the Complication to a Clock Face
- Testing the Complication
- Supporting Different Apple Watch Display Sizes in watchOS 2
- A watchOS 2 WatchKit Map Tutorial
- An Overview of Notifications in watchOS 2
- Default WatchKit Notification Handling
- Creating Notification Actions
- Inline Text Replies
- Handling Standard Notification Actions
- Handling Inline Text Reply Actions
- Responding to Notifications
- Custom Notifications
- Dynamic and Static Notifications
- Adding a Custom Notification to a WatchKit App
- Configuring the Notification Category
- Updating the Dynamic Notification Scene
- A watchOS 2 WatchKit Notification Tutorial
- A watchOS 2 WatchKit Custom Notification Tutorial
- About the WatchKit Custom Notification Example
- Creating the Custom Notification Project
- Designing the iOS App User Interface
- Registering and Setting the Notifications
- Configuring the Custom Notification
- Designing the Dynamic Notification Scene
- Configuring the didReceiveLocalNotification method
- Adding the Images to the WatchKit App Bundle
- Testing the Custom Notification
- A watchOS 2 WatchKit Inline Notification Text Reply Tutorial
<google>BUY_WATCHOS2</google>
Table of Contents | Next | |
watchOS 2 Apps – An Overview |