Add new action .didEndDisplaying
This commit is contained in:
parent
4712406618
commit
a7488b1d4f
|
|
@ -240,6 +240,10 @@ open class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate {
|
|||
open func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
|
||||
invoke(action: .willDisplay, cell: cell, indexPath: indexPath)
|
||||
}
|
||||
|
||||
public func tableView(_ tableView: UITableView, didEndDisplaying cell: UITableViewCell, forRowAt indexPath: IndexPath) {
|
||||
invoke(action: .didEndDisplaying, cell: cell, indexPath: indexPath)
|
||||
}
|
||||
|
||||
open func tableView(_ tableView: UITableView, shouldHighlightRowAt indexPath: IndexPath) -> Bool {
|
||||
return invoke(action: .shouldHighlight, cell: tableView.cellForRow(at: indexPath), indexPath: indexPath) as? Bool ?? true
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ public enum TableRowActionType {
|
|||
case deselect
|
||||
case willSelect
|
||||
case willDisplay
|
||||
case didEndDisplaying
|
||||
case shouldHighlight
|
||||
case height
|
||||
case canEdit
|
||||
|
|
|
|||
Loading…
Reference in New Issue