【发布时间】:2012-05-28 17:07:47
【问题描述】:
我有一个自定义 UITableViewCell。每个单元格都有一个独特的图像。
我有一个图像加载器类。我将字典传递给 ImageLoader 的方法。由图像 url 和其他一些信息组成的字典。当我们慢慢向下滚动 UITableView 时,这段代码运行良好。但是,如果我们快速向下滚动,它将有一些滞后。我需要优化我的算法。任何想法。
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
[ImageLoader addImageToQueue:dictionary];
}
【问题讨论】:
-
你将不得不发布更多的代码!!
-
您发布的代码似乎没有意义。
标签: ios uitableview image-loading