Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone UITableViewCell在后台加载,完成后更新到特定的tableViewCell_Iphone_Multithreading_Uitableview_Uiimage - Fatal编程技术网

Iphone UITableViewCell在后台加载,完成后更新到特定的tableViewCell

Iphone UITableViewCell在后台加载,完成后更新到特定的tableViewCell,iphone,multithreading,uitableview,uiimage,Iphone,Multithreading,Uitableview,Uiimage,我想在SBS澳大利亚新闻应用程序中创建类似于“节”的tableView。首先加载列表(当后台线程从url获取图像时,图像仍然显示默认图像),在图像完成下载或从url获取后,它将更新到特定的tableViewCell。我怎么能做到?如果我使用线程,在主线程(performSelectorOnMainThread)中执行更新视图时,如何返回到tableViewCell中的特定索引 谢谢加载完单元格后,请调用[tableView reloadRowsAtIndexPaths:withRowAnimat

我想在SBS澳大利亚新闻应用程序中创建类似于“节”的tableView。首先加载列表(当后台线程从url获取图像时,图像仍然显示默认图像),在图像完成下载或从url获取后,它将更新到特定的tableViewCell。我怎么能做到?如果我使用线程,在主线程(performSelectorOnMainThread)中执行更新视图时,如何返回到tableViewCell中的特定索引


谢谢

加载完单元格后,请调用[tableView reloadRowsAtIndexPaths:withRowAnimation:],它将重新绘制该单元格。您可以从performSelectorOnMainThread方法调用它