add delete section method

This commit is contained in:
Max Sokolov 2016-06-19 12:37:12 +03:00
parent ffac9fae14
commit acebd1c3e8
1 changed files with 6 additions and 0 deletions

View File

@ -235,6 +235,12 @@ public class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate
return self
}
public func delete(index index: Int) -> Self {
sections.removeAtIndex(index)
return self
}
public func clear() -> Self {
sections.removeAll()