How to reload a View Controller

Total Post:48

 1169  View(s)
Rate this:

I am using two view controllers, I want to reload first view controller to display some information (remember that first view is not a table view) after the update call is done.

So, how can I reload first view controller, can any one advice me please.

  1. Post:214

    Re: How to reload a View Controller

    If you are updating your database and want to refresh View Controller that are displaying data from database, you can use this code:

    [self viewDidLoad];

    and remember that, if you are overriding other viewWillAppear or loadView them as like this:

    [self viewDidLoad];
    [self viewWillAppear:YES];