My application uses locations data and presents it both as a table and in a map.
It starts with a Tab Bar Controller, each of it's views is a Navigation Controller (one for the table view, one for the map, etc...).
I want to share a UIManagedObject in order to use the same Managed Object Context so if the user updates at the table view, the data also gets updated for the map, so there is no need to update twice.
Originally i thought of subclassing the Tab Bar Controller and adding a UIManagedDocument as a property, and just passing it to each controller on the prepare for segue method. But i read that UITabBarController is not meant to be subclassed.
Another approach could be creating a View Controller, adding the Managed Document as property, and a Tab Bar to it. But i think that my storyboard would be unclear or inconsistent by showing some relationships graphically and others just in code.
Which one is the appropriate? Or is there a better way to do it?
Thanks in advance and best regards.