我想在我的表格视图中使用图片延迟加载概念。我的image rul字符串数组是(MSMutableArray
)“images”。我如何在cellForRowAtIndexPath
中执行此操作。图片在表格视图中的延迟加载
它看起来像:
-(UITableViewCell *) tableView:(UITableView *)AtableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell=[searchtable dequeueReusableCellWithIdentifier:@"cell"];
if(!cell)
{
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"];
cell.textLabel.font=[UIFont systemFontOfSize:12];
cell.imageView.image=[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[appSmallLogos objectAtIndex:indexPath.row]]]];
cell.detailTextLabel.text=[appReleaseDates objectAtIndex:indexPath.row];
}
return cell;
}
非常感谢好友..它的工作正常。 :) – user1573162
有一个快乐的编码 –
可以请你告诉我,如何显示活动指标,直到图像不显示在表视图单元格? – user1573162