Home > DeveloperSection > Forums > How to reload a View Controller
Chris S
Chris S

Total Post:48

Points:336
Posted on    November-23-2015 5:45 AM

 iPhone iPhone  Ios  Objective C 
Ratings:


 1 Reply(s)
 317  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.



Tarun Kumar

Total Post:210

Points:1614
Supported
Posted on    November-23-2015 10:17 PM

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];

Don't want to miss updates? Please click the below button!

Follow MindStick