Changes

An Overview of the WatchKit App Architecture

156 bytes added, 16:59, 20 April 2015
no edit summary
<table border="0" cellspacing="0" width="100%">
<tr>
<td width="20%">[[Building an Example WatchKit App|Previous]]<td align="center">[[WatchKit App Development Essentials|Table of Contents]]<td width="20%" align="right">[[An Example Interactive WatchKit Appusing Actions and Outlets|Next]]</td>
<tr>
<td width="20%">Building an Example WatchKit App<td align="center"><td width="20%" align="right">An Example Interactive WatchKit Appusing Actions and Outlets</td>
</table>
<hr>
It has also been established that the WatchKit app is primarily responsible for displaying the user interface while the programming logic of the app resides within the WatchKit extension.
It is less clear at this point, however, how the user interface elements in the app are connected to the code in the extension. In other words, how the project is structured such that tapping on a button in a scene causes a specific method in the extension to be called. Similarly, we need to understand how the code within the extension can manipulate the properties of a visual element in a storyboard scene, for example changing the text displayed on a Label interface object. These topics will be covered in this chapter and then put into practice in the next chapter entitled [[An Example Interactive WatchKit Appusing Actions and Outlets]].
This chapter will also provide an overview of the lifecycle of a WatchKit app and outline the ways in which this can be used to perform certain initialization tasks when a WatchKit app is launched.
Outlets and actions can be created visually with just a few mouse clicks from within Xcode using the Interface Builder tool in conjunction with the Assistant Editor panel, a topic which will be covered in detail in the chapter entitled [[An Example Interactive WatchKit Appusing Actions and Outlets]].
== The Lifecycle of a WatchKit App ==
<table border="0" cellspacing="0" width="100%">
<tr>
<td width="20%">[[Building an Example WatchKit App|Previous]]<td align="center">[[WatchKit App Development Essentials|Table of Contents]]<td width="20%" align="right">[[An Example Interactive WatchKit Appusing Actions and Outlets|Next]]</td>
<tr>
<td width="20%">Building an Example WatchKit App<td align="center"><td width="20%" align="right">An Example Interactive WatchKit Appusing Actions and Outlets</td>
</table>