Swift 子类化Firebase FUIFirestoreTableViewDataSource
我试图将FUIFirestoreTableViewDataSource子类化为一个可编辑的…数据源,类似于发现的,它子类化了FUITableViewDataSource 我遇到的问题发生在尝试更换线路时Swift 子类化Firebase FUIFirestoreTableViewDataSource,swift,firebaseui,Swift,Firebaseui,我试图将FUIFirestoreTableViewDataSource子类化为一个可编辑的…数据源,类似于发现的,它子类化了FUITableViewDataSource 我遇到的问题发生在尝试更换线路时 super.init(collection: FUIArray.init(query: query), populateCell: populateCell) 使用FUIFirestoreTableViewDataSource的指定初始值设定项 super.init(collection: F
super.init(collection: FUIArray.init(query: query), populateCell: populateCell)
使用FUIFirestoreTableViewDataSource的指定初始值设定项
super.init(collection: FUIBatchedArray.init(query: query, delegate: <#T##FUIBatchedArrayDelegate?#>), populateCell: populateCell)
super.init(集合:fuibachedarray.init(查询:查询,委托:),populateCell:populateCell)
与FUIArray相反,FUIBatchedArray需要委托。当尝试将self作为代理时,我在'super.init'call'之前使用了'self'。
为了让超类像往常一样充当委托,我应该在这里的delegate参数中插入什么?我在尝试将fuifRestoreCollectionViewDataSource子类化时遇到了同样的问题,最后我在Swift中重写了整个类:。虽然不是完全可编辑的,但它确实提供了一种方法来配置针对查询快照应用的过滤器,并且应该易于扩展,以包括修改数据的其他方法。希望能有帮助。