/ Published in: Objective C
It was based in Markjnet example here:
>> http://www.markj.net/iphone-asynchronous-table-image/
>> http://www.markj.net/iphone-asynchronous-table-image/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// *.h NSURLConnection* connection; NSMutableData* data; ======= // *.m - (void)viewWillAppear:(BOOL)animated { // request the data NSURLRequest* request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.img] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0]; } if (data==nil) { } [data appendData:incrementalData]; } [connection release]; connection=nil; // do the stuff with your downloaded data here }