PDA

View Full Version : Force refresh of UIView?




detz
Jul 14, 2008, 09:09 AM
ok..I have a function, at the top I hide a UILabel, in the middle I do some processes(grab a file online) and at the end I show the label. All of this in one function and the labels never get hidden because the UI does not get updated before the long process begins. Any ideas on how I can force refresh this?



louden
Jul 14, 2008, 03:45 PM
You can make a delegate for the callback, but I would have that change your model and not the view... (if you build apps that way). You could then reload the data into whatever view you're working with in the delegate.

Check out some of the samples that load a form modally. They create a delegate to handle the form going away. It's the same thing for you, only you're waiting for a file to show up. They do that exact scenario with table views.