From 52af26581fd7fdf6afac09dfe6466fca71a80032 Mon Sep 17 00:00:00 2001 From: Sergey Nikitenko Date: Sun, 3 May 2015 21:12:43 +0300 Subject: [PATCH] Updating README --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 3051955..6fa6b1c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # WKInterfaceTable extensions (Swift) -A couple of helpers to manage WatchKit table cells without indices. +A couple of helpers to manage WatchKit table rows without indices. #### Overview `WKInterfaceTable` is so simple, as the following trivial usage instructions: @@ -13,29 +13,29 @@ Use the `builder` object to describe table structure: var builder = WKInterfaceTable.Builder() -Add some cell definitions: +Add some row definitions: - builder.addCell("RowTypeId") { (cell: CellController) -> Void in - // Configuration closure to setup and fill cell data - // Called just after cell is created - cell.label.setText("Hello table") + builder.addRow("RowTypeId") { (row: RowController) -> Void in + // Configuration closure to setup and fill row data + // Called just after row is created + row.label.setText("Hello table") - // Or store cell reference for future access - self.certainCell = cell + // Or store row reference for future access + self.certainRow = row } Finally, apply the results to a `WKInterfaceTable` object: - builder.instantiateTableCells(table) + builder.instantiateTableRows(table) #### Handle row selection -Bind selection handler to the target `cell`: +Bind selection handler to the target `row`: - WKInterfaceTable.setDidSelectHandler(cell) { - NSLog("Cell Clicked") + WKInterfaceTable.setDidSelectHandler(row) { + NSLog("Row Clicked") }