How do I reload a UIView?

smtlaissezfaire picture smtlaissezfaire · Feb 15, 2011 · Viewed 18k times · Source

How do I reload a UIView after viewDidLoad + viewWillAppear have already been called (and the view displayed)?

If it helps - I'm loading it from a xib/nib file, and expect that calling the method should only trigger viewWillAppear on the controller, not to reload the whole nib file.

Answer

Nava Carmon picture Nava Carmon · Feb 15, 2011

How about [yourViewController.view setNeedsDisplay]?