I would like to fill an array from a file every time one of my tableview’s is selected in the tab bar.
I dont think putting the code in the viewDidLoad method works, because the view gets loaded on once?
Where should the code be placed?
Within the viewDidAppear method?
Put it in viewWillAppear if you want the code to run before the view is displayed.