iphone - NSThread and UIProgressView on an UITableCells -


I have a project that performs a series of NSThread objects and displays progress on the respective UIProgressView. I display these UIProgressView on UITableView and draw customs. I've set one NSThread progress representative one by one in a certain UIProgressView.

One problem is that if I pull any UITableCell and move it up / down, some UITableCells above and below UITableView will be disrupted (cell becomes zero) and need to be restructured is.

On all UITableCells, all controllers can lure properly, except these UIProgressView.

I do not know that when I reconstruct the UIProgressView, then I need to reassign the representative relationship between the progress rep as each NSThread and its associated UIProgressView.

thanks

interdev

This is actually a filthy The situation that you are getting yourself updates me to the thread a model object, and when you are displayed, your model has UIProgressViews related to the item. In this way the model always updates correctly

Then I can think of several ways to update UIProgressViews: Subclass, and update after an NSNotification, or do this with KVO


Comments