Ich lade einige Bilder aus dem Internet in einer Tabellenansicht innerhalb cellForRowAtIndexPath
. Hier ist mein Code:Tabellenansicht scroll spacing bei Verwendung von SDWebImage
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *MyIdentifier = @"ArticleCell";
ArticleCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
Article *article = [parser items][indexPath.row];
cell.title.text = article.title;
cell.newsDescription.text = article.description;
[cell.image setImageWithURL:[NSURL URLWithString:article.image]];
return cell;
}
Mein Problem ist, dass selbst wenn ich SDWebImage
, wenn ich nach unten scrollen, meine App noch nacheilt. Hier sind einige Screenshots von Instruments
:
Wie groß sind die Bilder? – Wain
naja, etwas zwischen 50.000 und 200.000, sagen wir mal 150 KB – Kobe
Welchen Typ haben die Bilder? TIFF? – Wain