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") }