【发布时间】:2022-01-26 21:33:29
【问题描述】:
我真的无法在文档或其他地方找到它,但有没有办法使用 RxDatasources 提供从 nib 加载的自定义页眉和页脚?
例如,我将这样的单元格出列:
let dataSource = RxTableViewSectionedAnimatedDataSource<CommentsSectionModel>(
configureCell: { dataSource, tableView, indexPath, item in
if let cell = tableView.dequeueReusableCell(withIdentifier:
item.cellIdentifier, for: indexPath) as? BaseTableViewCell{
cell.setup(data: item.model)
return cell
}
return UITableViewCell()
})
我没有看到与configureCell(titleForHeaderInSection 除外)一起让我出列/配置可重用页眉/页脚的东西(标准viewForHeaderInSection 和viewForFooterInSection 委托方法提供的东西)。
【问题讨论】:
-
好的,谢谢,我想我可以试试。我当时想,有没有像
configureCell、configureHeaderFooterView、configureSupplementaryView之类的... @RTXGamer
标签: ios swift rx-swift rxdatasources