How is the data source and binding in RxDataSource-4

How the data source in RxDataSource (3.0.1)
is bound to the data source--summary
Through the analysis of the previous three articles, we can basically summarize the implementation principle of RxDataSource data source proxy binding
1. RxDataSource will create a data source and The proxy object, at the same time, if the tableview has artificially set the proxy before, it will be saved (in fact, it is saved in the proxy object created by itself), replace the one we set with the one created by itself, and then use the associated object method of runtime Associate them with the corresponding tableview, and then obtain it according to the tableview itself when acquiring it. When the agent event is triggered, his own agent will execute, and at the same time, notify the saved agent that we set artificially before, so that when the agent time occurs, His method will respond, and the delegate we set ourselves will also respond without conflict.
As for the data source can not respond to two at the same time like the proxy, because there can only be one data source
If you try, artificially set tableview.dataSource = self when using rxdatasource, the program will crash

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325305162&siteId=291194637
Recommended