In my app, I've noticed that as I push and pop a view controller containing an MKMapView
, memory usage steadily increases. I've determined that there is a problem with MapKit itself, not my code, though. I made a test project containing simply a navigation controller in which I repeatedly can push and pop a view controller containing nothing but a map view - no annotations or overlays.
My results indicate that this is a bug in iOS 6; in the iOS 6 simulator I see the gradual increase in memory usage. I suppose this is an issue with Apple's new in-house maps.
Any thoughts as to why this is happening?