I’ve got an iOS app that has a page view to show multiple items as pages. Each page contains a tab bar controller with 2 tabs so I can show the info for each page in 2 ways – as a table or as a graph. Here’s a screenshot:

So the user chooses which item to look at (in this case bananas) by changing pages. But I can’t figure out where or how I should inject which item they’re looking at into the 2 view controllers within the tab controller. Here’s a shot of my storyboard if that helps. I want to inject it when the table view controller or graph controller are created but I can’t see where that’s happening to get at that code – have I missed something?
Thanks.

Not sure if this will work the same in the storybaord environment, but there is UITabBarControllerDelegate that has a callback method named didSelectViewController. It will give you the viewcontroller that is being selected. Doc from Apple.