April 2020
Beginner
316 pages
8h 20m
English
First of all, we must ask the question, why would we want multiple UITableViewDataSource? One of the many reasons is simply its reusability.
As we saw in the previous section, we have to conform to the UITableViewDataSource delegate and override multiple functions, just in order to get our table to load some data. However, one of the positive sides to all this is the ability to separate out specific code of specific instances.
Referring back to the IndexPath we saw being passed into each delegate method, we can easily identify and alter the style or even the type of the UITableViewCell being used.
We may, however, decide to reload a whole other set of data and UITableViewCell without the need to reload the whole ...
Read now
Unlock full access