iphone - How to update offscreen cell of a UITableView -


I have UITableView in my application and I have optimized it. Each cell has an image view and a button. When I click on the button a downloading process will start and the button will be replaced with the UIProgressView. And when the download is complete, the progress will be deleted and then the button will be displayed with a different status. It's working fine for a cell which is visible in the screen. But I can not update a cell that has an offscreen when the download is complete. Progressive view updates are also working whether the cell is off-screen. But when there are problems, try to change the progress scene with the button.

I have some code samples:

To update, create a custom cell with the

  // id value after the download is complete And Upgrading Cells NSIN and Apps * IndexPath = [NSIndexPath indexPathForRow: BTNID in Science: 0]; // Bitianaidi, Uaianuitemsiel * cell = ([Uaimianaiaitemsiel *] [self Kmenuitimspanel Selforruattaindakspath: Indekspeth] maintain that the ID button; // (UIProgressView * the current progress in cell.contentView.subviews) will see the progress view { if ([current progress KindOfClass: [UIProgressView class]]) {currentProgress.hidden = YES; [Cell.contentView reload Inputdrishy];}} for (UIButton * currentBtn in cell.contentView.subviews) {if ([currentBtn IsKindOfClass: [UIButton class]]) {if (currentBtn) {// button status update here Education is, after the download is completed}}   

Please help.

when will he come cell onscreen is, cellForRowAtIndexPath.

Eliminate the law, put a Czech

  if (complete download) progress bar and buttons Add.    

Comments