我怎样才能让 RxDataSource 工作

How can I get RxDataSource to work

我需要添加为广告连播吗? 我需要创建一个带有 RxCocoa UI 绑定的分段 tableView。我一直无法找到正确的文档来实现它。 提前致谢

这是我的 Podfile

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'NetworkLayer-Rx' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for NetworkLayer-Rx
  pod 'RxAlamofire'
  pod 'RxSwift'
  pod 'RxCocoa'

  target 'NetworkLayer-RxTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

是的,RxDataSources 是一个单独的 pod,因此您需要将它添加到您的 Podfile 中。

在 RxDataSources 存储库中解释了安装: https://github.com/RxSwiftCommunity/RxDataSources#installation