fix clickDelete event
This commit is contained in:
parent
b1f3b110b1
commit
79aef4dd39
|
|
@ -226,15 +226,7 @@ public extension TableDirector {
|
|||
public func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
|
||||
|
||||
if editingStyle == .Delete {
|
||||
|
||||
invokeAction(.clickDelete, cell: tableView.cellForRowAtIndexPath(indexPath), indexPath: indexPath)
|
||||
|
||||
let builderInfo = builderAtIndexPath(indexPath)
|
||||
builderInfo.0.removeItemAtIndex(builderInfo.1)
|
||||
|
||||
tableView.beginUpdates()
|
||||
tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Automatic)
|
||||
tableView.endUpdates()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue