I have a offlineMapVC
and a onlineMapVC
for my application to support both online maps (using MapKit and Google Maps) and offline maps (using Route-Me).
I made my own mapVC
to manage the switching of these mapVCs and be able to use the view controller as one separate view controller. Well I've done this by making the offlineMapVC
and the onlineMapVC
instance variables of the new mapVC
witch I now use all over my application.
First off all things seem to work but. However while using this approach for a longer time I ran into some problems due my using of View Controllers in a hierarchy. I read this is the wrong way to go. What is the right way to manage the switching between two view controllers? My question seems fairly simple but I couldn't find a decent solution.