I have one tableViewController that makes an API call, gets data, and I store it in a variable sortedData
, which is an array, that contains dictionaries. Once a user pushes the button, NO segue occurs, but I do:
self.tabBarController!.selectedIndex = 2;
Now I need to load the data from this sortedData
variable in the new tableViewController2, and display it to the user however I see fit. I have searched far and wide, and cannot find a good way to accomplish this. babysteps would be ideal for me because I am very confused how to do this.
This array will be changing everytime the user does a search, so I don't think I can use it as a singleton