WKInterfaceTable
- new projcet
- new watchkit target
- in the storyboard drag a table
- drag an outlet to the interface controller
- in code - define a row controller class per defined row controller
- at init, add rows to table
- respond to row selections
- select table obj from storyboard
- open its attributes tab
Define a custom row controller class
- new NSObject subclass
- @import WatchKit;
- add IBOutlets per UI obj in your row
- in storyboard, set row controller class and connect the outlets
- assign an identifier string to the row (remember it for later when creating a new row)
Configure row content in runtime
- Determine number of rows
- Determine type of row
- Iterate through rows using rowConrtollerAtIndex:[int]
- Config the row controller content
Respond to row selection
- impement table:didSelectRowAtIndex: