LDS
LDS是列表数据源
CocoaPods
# Podfile
use_frameworks!
target 'TARGET_NAME' do
pod 'LDS'
end
替换`TARGET_NAME`,然后在`Podfile`目录下,键入以下内容:
$ pod install
与UICollectionView工作时有问题
如何在ViewController中使用
ViewDidLoad
adapter.observableDataSource = contactsObservableDataSource
And deinit
deinit {
adapter.observableDataSource = nil
}
如何在cell中使用
当您为cell设置内容时
adapter.observableDataSource = contactsObservableDataSource
当cell在`prepareForReuse()`方法中重用时
adapter.observableDataSource = nil