Difference between revisions of "WatchKit App Development Essentials"
From Techotopia
Line 99: | Line 99: | ||
#* [[WatchKit App and Parent iOS App Communication|Using the beginBackgroundTaskWithName Method]] | #* [[WatchKit App and Parent iOS App Communication|Using the beginBackgroundTaskWithName Method]] | ||
#* [[WatchKit App and Parent iOS App Communication|Using Background Modes]]<br><br> | #* [[WatchKit App and Parent iOS App Communication|Using Background Modes]]<br><br> | ||
+ | # [[A WatchKit openParentApplication Example Project]] | ||
+ | #* [[A WatchKit openParentApplication Example Project|About the Project]] | ||
+ | #* [[A WatchKit openParentApplication Example Project|Creating the Project]] | ||
+ | #* [[A WatchKit openParentApplication Example Project|Enabling Audio Background Mode]] | ||
+ | #* [[A WatchKit openParentApplication Example Project|Designing the iOS App User Interface]] | ||
+ | #* [[A WatchKit openParentApplication Example Project|Establishing Outlets and Actions]] | ||
+ | #* [[A WatchKit openParentApplication Example Project|Initializing Audio Playback]] | ||
+ | #* [[A WatchKit openParentApplication Example Project|Implementing the Audio Control Methods]] | ||
+ | #* [[A WatchKit openParentApplication Example Project|Adding the WatchKit App Target]] | ||
+ | #* [[A WatchKit openParentApplication Example Project|Designing the WatchKit App Scene]] | ||
+ | #* [[A WatchKit openParentApplication Example Project|Opening the Parent Application]] | ||
+ | #* [[A WatchKit openParentApplication Example Project|Handling the WatchKit Extension Request]] | ||
+ | #* [[A WatchKit openParentApplication Example Project|Testing the Application]]<br><br> | ||
# [[Handling User Input in a WatchKit App]] | # [[Handling User Input in a WatchKit App]] | ||
<br><br> | <br><br> |
Revision as of 17:29, 23 April 2015
This book is currently under development. Check back regularly for updates.
Table of Contents
- An Overview of WatchKit Apps
- Building an Example WatchKit App
- An Overview of the WatchKit App Architecture
- An Example Interactive WatchKit App using Actions and Outlets
- 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
- An Overview of WatchKit Tables
- 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
- A WatchKit Table Tutorial
- About the Table Example
- Creating the Table Project
- Adding the WatchKit App Target
- 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
- A WatchKit Table Navigation Tutorial
- 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
- WatchKit Page-based User Interfaces and Modal Interface Controllers
- A WatchKit Page-based Navigation Tutorial
- Creating the Page Example Project
- Adding the WatchKit App Target
- 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 Alert Sound
- WatchKit App and Parent iOS App Communication
- A WatchKit openParentApplication Example Project
- 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
- Adding the WatchKit App Target
- Designing the WatchKit App Scene
- Opening the Parent Application
- Handling the WatchKit Extension Request
- Testing the Application
- Handling User Input in a WatchKit App