Force refresh of UIView?

Discussion in 'iOS Programming' started by detz, Jul 14, 2008.

  1. detz macrumors 65816

    Jun 29, 2007
    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?
  2. dgdosen macrumors 65816


    Dec 13, 2003
    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.

Share This Page