RxTableViewSectionedAnimatedDataSource
使用UITableView时出现以下错误rx_itemsAnimatedWithDataSource()
。
这是错误的屏幕截图:
无法使用类型为“(RxTableViewSectionedAnimatedDataSource)”的参数列表调用“rx_itemsAnimatedWithDataSource”
需要类型为“(数据源)”的参数列表
self.dataSource
是类型:
RxTableViewSectionedAnimatedDataSource< DateSelectorSectionModel>
这是生成的接口DateSelectorSectionModel
,以及相关类型:
typealias DateSelectorSectionModel = SectionModel<SectionDesc, SectionDesc>
enum SectionType {
case StartDate, EndDate, TimeZone, AllDay
}
enum SectionState {
case Present, Missing, Dirty
}
enum SectionSelection {
case NotSelected, Selected
}
struct SectionDesc {
var type: SectionType
var state: SectionState
var selectionState: SectionSelection
init(type: SectionType, state: SectionState, selection: SectionSelection)
public func getSectionModel() -> DateSelectorSectionModel
}
extension EventDetailsDateSelectorViewModel {
public var rows: RxCocoa.Driver<[DateSelectorSectionModel]> { get }
}
有任何想法吗?谢谢!