美文网首页
RxSwift RxDatasource

RxSwift RxDatasource

作者: 简化 | 来源:发表于2021-08-27 12:51 被阅读0次

错误如下:

Assertion failed: Data source is already bound. 

出现的时机:
a.使用了RxTableViewSectionedReloadDataSource作为数据源
b.配置dataSource设置能否编辑,是否设置section title
c. b步骤出现在 bind 之前

解决办法:
1. b步骤作为第一步骤
2.在viewWillAppear中再bind

相关文章

网友评论

      本文标题:RxSwift RxDatasource

      本文链接:https://www.haomeiwen.com/subject/kkdmiltx.html