I have separate files for the UITableViewDataSource and UITableViewDelegate
I am implementing a 'Pull Down to Refresh' feature on a UITableView and wish to send a signal from the UITableViewDataSource to the UITableViewDelegate to stop the loading indicator from turning.
I was wondering what the best way to send a signal between the UITableViewDataSource and UITableViewDelegate is, or if there is a better way to construct this since I feel like I'm breaking some abstraction barriers.
What I have in the Data Source:
if([tableView.delegate respondsToSelector: @selector(dataSourceDidFinishLoadingNewData)]){
[tableView.delegate dataSourceDidFinishLoadingNewData];
}
but I get 'dataSourceDidFinishLoadingNewData' not found in protocol warning since, I guess, the function is not declared as a method of UITableViewDelegate