Reputation: 611
I have a series of table views that 'drill down' to a final view controller. After the user has filled in a few text fields, it pushes to another one which is a congratulatory screen! Amazing I know. I've put a 'home' button in which (as it is a storyboard) then pushes to the first screen. Unfortunately the table is now not populated. Do I have to implement some code such as [reload data] in the prepareForSegue method or is there a better/correct way to do it? Any help would be much appreciated.
Upvotes: 0
Views: 803
Reputation: 31016
Presumably you have an array that provides values for the table and this array gets updated somewhere. Without much else to go on, I'd look at keeping a BOOL value that records whether that array has been changed. Then, in viewDidAppear, call [table reloadData] and reset the flag if there have been changes.
Upvotes: 1