I have a custom UITableViewCell with, among other things, a label and an imageView. If the table view is the visible view and it has a cell on it, if I programmatically update the label's text and the imageView's image and log when I do it, it takes about 4 seconds AFTER I see the notification in the logs for the label and image to update. Here is the order of what happens and how:
-Load the view containing the table and one custom cell
-Write a file to disk using and NSOperation (and queue)
-When the NSOperation is finished writing the file it fires a NSNotification (defaultCenter) which tells the cell's view to update the label and image AND I set [self setNeedsDisplay]
-Here I see in my logs that the cell has gotten the notification AND finished setting the new values
-~4 seconds later the cell's view actually updates.
What gives?