add delete section method
This commit is contained in:
parent
ffac9fae14
commit
acebd1c3e8
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue