I have a view that is used to update some NSUserDefaults. These defaults have an impact on a table in a different view. The issue I’m facing is that I want to reload the data in the table before the view is displayed again.
At present I have viewA which contains the table, I then display viewB using the following code:
[self presentModalViewController:viewB animated:YES];
Once the user has updated the NSUserDefaults viewB is dismissed, therefore displaying viewA again. Before viewA is displayed I want to be able to refresh the data though. Is there any way of doing this?
In viewA’s viewWillAppear call you refresh code.