Rx wrapper for UITableViewDelegate tableView:accessoryButtonTappedForRowWithIndexPath: method
This commit is contained in:
parent
d0cd75036d
commit
08a3161354
|
|
@ -148,6 +148,18 @@ extension UITableView {
|
|||
return ControlEvent(events: source)
|
||||
}
|
||||
|
||||
/**
|
||||
Reactive wrapper for `delegate` message `tableView:accessoryButtonTappedForRowWithIndexPath:`.
|
||||
*/
|
||||
public var rx_itemAccessoryButtonTapped: ControlEvent<NSIndexPath> {
|
||||
let source: Observable<NSIndexPath> = rx_delegate.observe("tableView:accessoryButtonTappedForRowWithIndexPath:")
|
||||
.map { a in
|
||||
return a[1] as! NSIndexPath
|
||||
}
|
||||
|
||||
return ControlEvent(events: source)
|
||||
}
|
||||
|
||||
/**
|
||||
Reactive wrapper for `delegate` message `tableView:commitEditingStyle:forRowAtIndexPath:`.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue