So I have a view controller that displays some amount of data. When a user clicks on a button, they are taken to UITableViewController
. I then have a "barbuttonitem" that uses
[self dismissViewControllerAnimated:YES completion:nil]
to go back to the previous view controller with the data. The problem is that the data on the previous controller is supposed to change when I return back to it through a method I'm declaring in viewDidLoad
. However, the data stays the same. Any idea why this could be?
For example: If the text label says "3 notifications", and the users clicks on the button to go to the UITableViewController
and then clicks the back button, it is supposed to say 0 notifications.