I have a tableViewController
, that when it loads a cell it calls another class, DownloadData
which is a UIOBject
, which initializes a bunch of data. That class calls a downloader which downloads a file. I don't want to wait for this file to be downloaded to initially load my table, but the table has fields for the downloaded data. I'd like to refresh my table when it's complete. The download, when complete, calls the method:
- (void) URLSession:(NSURLSession *)session
downloadTask:(NSURLSessionDownloadTask *)downloadTask
didFinishDownloadingToURL:(NSURL *)location
which is in the DownloadData
class. What is the best way that I can make the above method, when called, force my table view to update? Thank you!