I am trying to represent the same data in two different ways, one in TableView, one in map. The storyboard design looks like below.
I used two container views; one contains a table view and one contains a map. Let's call the ViewController that has segmented control as SegView
. In the SegView
controller - viewDidLoad
method, I get the data from server and want both tableview and map use this data.
However, since the tableview, the map, and the SegView
have three different ViewController instances, I am wondering how to pass the data from SegView
to the two container view. Could you help me on that?