【发布时间】:2018-06-12 19:40:09
【问题描述】:
如何使用响应式框架用数组填充 NSTableview? 在 iOS 中用于 UITableview:
self.viewModel.arrayElements.asObservable()
.observeOn(MainScheduler.instance)
.bind(to: detailsTableView.rx.items(cellIdentifier: "comment", cellType: UITableViewCell.self)){
(row,element,cell) in
cell.addSubview(cellView)
}.addDisposableTo(disposeBag)
我怎样才能为 NSTableView
实现同样的效果【问题讨论】:
标签: macos reactive-programming nstableview rx-swift rx-cocoa