I am creating a custom UIView that has a data source similar to a UITableView . When should this data source query for data for the first time, and in which method of my subclass of UIView ?
Right now I am requesting a data source when it is set in the view property.
I think the table view does it differently, because if I provide its data source in the / xib storyboard and I create the data in the viewDidLoad method of the viewDidLoad controller (the data source is already set by then) then the data source is still will be requested without calling reloadData . When viewing a table reloads data without asking it explicitly?
source share