It took me a while to get it, and there is no google help yet. Hope this saves you a few minutes.
viewModel.rows
.bindTo(resultsTableView.rx_itemsWithCellFactory){
(tv, i, vm) in
let indexPath = NSIndexPath(forItem: i, inSection: 0)
let cell = tv.dequeueReusableCellWithIdentifier("WikipediaSearchCell", forIndexPath: indexPath) as! WikipediaSearchCell
cell.viewModel = vm
return cell as UITableViewCell
}
.addDisposableTo(disposeBag)
source
share