I have a tabular view of user cells representing individual downloads, and each cell has a progress indicator in it and a success / error icon. I want to update the cells as the progress updates and indicate if it was a success or a failure. I do this when my boot controllers broadcast NSNotifications for progress / success / failure.
Is it better:
A) so that each cell has an NSNotification listener for these notifications and updates the cell view
OR
B) , the table view controller has an NSNotification listener that listens for these notifications and then sets values โโfor each cell, receiving cells with cellForRowAtIndexPath.
I think it comes down to A , itโs easier to implement, but I wonder if there is a performance penalty so that so many listeners listen to these notifications and do โIF this notification is related to me ...โ Unlike B , which has only one listener and can be generalized to any multi vs single listener project.
objective-c iphone uitableview
Shizam
source share