Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I need to refresh the content of a view as soon as I popViewController

ViewA load some data from Coredata, then push to the next viewB. In viewB, there are some function, that will change the content of viewA (meaning viewB change the content of core data). However, when I pop the view back to viewA, my content stay the same as before. How can I fix this?

like image 991
Thang Pham Avatar asked Dec 18 '22 01:12

Thang Pham


1 Answers

in viewA's -(void)viewWillAppear:(BOOL)animated delegate method you can refresh the control you need... i.e. if you want to reload table that in viewWillAppear method write

[Table reloadData];
like image 106
Mihir Mehta Avatar answered Apr 12 '23 23:04

Mihir Mehta