I need to update the contents of the view as soon as I popViewController

ViewAdownload some data from Coredata, then click on the following viewB. There viewBis some function that will change the contents of viewA (the value of viewB will change the contents of the master data). However, when I return the view to ViewA, my content remains the same as before. How can i fix this?

+3
source share
2 answers

in viewA -(void)viewWillAppear:(BOOL)animateddelegate method, you can update the necessary control ... i.e. if you want to reload the table which in viewWillAppear method write

[Table reloadData];
+7
source

:

viewA, u viewDidLoad viewCOntroller viewA, viewWillAppear. , , .

, . viewA, true, - viewB, viewB, , viewWillAppear, true. , , , , viewA.

, .

,

Madhup

+3

Source: https://habr.com/ru/post/1740255/


All Articles