HOW TO RELOAD A VIEW CONTROLLER

Chris S

Total Post:48

Points:336
Posted by  Chris S
 712  View(s)
Ratings:
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. Tarun Kumar

    Post:214

    Points:1642
    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];

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!