in my cellForRowAtIndexPath method I've got some code to download images asynchronously via UIImageView+AFNetworking category But as far I understand cellForRowAtIndexPath method is called every time I scroll the table to the cell, and every time the image download is started. Can I cache the images or the cells or someting like that?
- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
//some code here
[imageView setImageWithURL: myURL placeholderImage:[UIImage imageNamed:@"placeholder"]];
//some other code here
return cell;
}