diff --git a/Tablet/TableBaseRowBuilder.swift b/Tablet/TableBaseRowBuilder.swift index f365fc2..e8b1db0 100644 --- a/Tablet/TableBaseRowBuilder.swift +++ b/Tablet/TableBaseRowBuilder.swift @@ -113,6 +113,11 @@ public class TableBaseRowBuilder, withRowAnimation: <#T##UITableViewRowAnimation#>) + } + public func item(index index: Int) -> DataType { return items[index] } diff --git a/Tablet/TablePrototypeRowBuilder.swift b/Tablet/TablePrototypeRowBuilder.swift index f37d158..a1661bc 100644 --- a/Tablet/TablePrototypeRowBuilder.swift +++ b/Tablet/TablePrototypeRowBuilder.swift @@ -84,8 +84,8 @@ public class TablePrototypeRowBuilder(items: ["1", "1", "1", "1"]) + let rows = TablePrototypeRowBuilder(items: ["1", "1", "1", "1"]) .action(.click) { [unowned self] e in self.performSegueWithIdentifier("headerfooter", sender: nil) } + + let rows2 = TablePrototypeRowBuilder(items: ["1", "1", "1", "1"]) + + rows.remove(index: 0, animated: .None) tableDirector += rows + tableDirector += rows2 } } \ No newline at end of file