This is probably a pretty stupid question, but I haven’t been able to find the answer because I don’t really know what I’m looking for.
Basically I want to know when the restClient method (which downloads a remote file) is done, because I want to wait for that before I want webView to load the file: [webView loadRequest:request];
What would be the best way to do this?
[self.restClient loadFile:[NSString stringWithString:filePath] intoPath:[NSString stringWithString:localPath]];
NSURL *url = [NSURL fileURLWithPath:localPath];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];
Set the delegate on you restClient, probably to the current instance, and perform the loadRequest in the
loadedFilemethod: