Thanks to Beginning iPhone Development's Objective-C examples the Monospace app now does a flip-flop between two views (the map and a new list of map locations to 'pan to'). The source code is available for download (you'll also notice the UI has been made "black"... I just like the way it looks).
The view is driven by the
MapFlipViewController (which is what we add to the
TabViewController). It is responsible for creating/displaying the two 'flippable' views using
UIView animation features.
The two views -
MapLocationViewController - have a constructor which accepts a reference to the 'flipper' so they can call back to it's
Flip() method, which looks something like this...
UIView.BeginAnimations("Flipper");There is other code to actually set the map to a specific location - but that's actually pretty simple :)
if (mapView.View.Superview == null)
(UIViewAnimationTransition.FlipFromRight, this.View, true);
(UIViewAnimationTransition.FlipFromLeft, this.View, true);