34,333
edits
Changes
→Adding the Row Controller Class to the Extension
As previously outlined, each row controller type must have a corresponding row controller class file within the app extension. This must be a subclass of NSObject and can be created using the following steps:
1. Locate the WatchKit Extension folder within the Project Navigator panel and Ctrl-click on it.<br>2. From the resulting menu select the New File… menu option.<br>3. In the new file template panel, select Source listed under watchOS in the left hand panel and WatchKit Class from the main panel before clicking Next.<br>4. Enter a name for the class into the Class field and select NSObject from the Subclass of: menu before clicking Next.<br>5. Click Finish to add the new class to the extension.<br>
== Associating a Row Controller with a Row Controller Class ==