My root view controller is a map with several annotations. When an annotation is selected and the accessory button is tapped, I display a modal view that looks like so: http://i.imgur.com/hACyH.png
In this modal view, you can get a street view look at the annotations coordinate (I do this using a UIWebview). You can also submit a photo, or do a couple other tasks that appear to be relatively high in memory consumption. Anytime I get "Received memory warning" message in the console while I have the modal view displayed, the parents objects (IE the MapKit object) appear to get released because once I dismiss the modal view, the map is now centered on the center of the earth (somewhere in the south atlantic ocean near africa) and a tableview is empty.
I want to preserve these objects, even if there's a memory warning. What appears to be causing this is that viewDidUnload is being called in the root view controller, and in this method, I'm setting all my variables to nil. What's the proper way to handle this memory situation?
Thanks!