我可以更新detailTextLabel.text,UITableViewCell在运行时显示更改,但如果我尝试更新imageView.image,它不会更改可见图像.知道为什么?我曾尝试在UITableViewCell上调用刷新,但无济于事.
-(void)getImageForURL:(NSURL*)url row:(UITableViewCell*)cell {
UIImage*image;
image = [UIImage imageWithData:[NSData dataWithContentsOfURL:url];
cell.imageView.image = image; // Does not work..
cell.detailTextLabel.text = @"test"; // Works
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3926 次 |
| 最近记录: |