Skip to content

Commit d12b832

Browse files
authored
Merge pull request ReactiveX#804 from devxoul/tableview-willdisplaycell
Fix type mismatch in UITableView.rx_willDisplayCell
2 parents 7cc3dab + f303efb commit d12b832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RxCocoa/iOS/UITableView+Rx.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ extension UITableView {
283283
Reactive wrapper for `delegate` message `tableView:willDisplayCell:forRowAtIndexPath:`.
284284
*/
285285
public var rx_willDisplayCell: ControlEvent<WillDisplayCellEvent> {
286-
let source: Observable<DidEndDisplayingCellEvent> = rx_delegate.observe(#selector(UITableViewDelegate.tableView(_:willDisplayCell:forRowAtIndexPath:)))
286+
let source: Observable<WillDisplayCellEvent> = rx_delegate.observe(#selector(UITableViewDelegate.tableView(_:willDisplayCell:forRowAtIndexPath:)))
287287
.map { a in
288288
return (try castOrThrow(UITableViewCell.self, a[1]), try castOrThrow(NSIndexPath.self, a[2]))
289289
}

0 commit comments

Comments
 (0)