I got this error:
too many update animations on one view - limit is 31 in flight at a time
When executing [self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationNone];
Now I'm trying to limit the number of that method being called.
The question is, how can I know what is the limit count for the update animations count? In the above error, the limit is 31.
Should I hardcode the value?
EDIT:
[cell.imageView setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@", [[tempDictionary objectForKey:@"image"] objectForKey:@"url"]]] placeholderImage:placeholderImage options:SDWebImageRetryFailed completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType) {
if (!image)
[self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationNone];
}];
basically the code above requests for an image to be set to an UIImageView
. If the request failed (no image received), it tells the UITableView
to reload the cell, thus requesting the image once more.