Wednesday, August 8, 2012

How to reload current UIViewController


How to reload current UIViewController

Sometimes you might need to reopen currently open UIViewController. There might be a UITableView, but doing just [self.myTable reloadData] might not be enough. Try this:
[self viewWillDisappear:NO];
[self viewWillAppear:NO];
Of course this will work only, if those methods contain operations you need to do while closing and opening your view.

1 comment:

  1. http://jomnius.blogspot.in/2010/05/how-to-reload-current-uiviewcontroller.html

    ReplyDelete