MKMapCamera – Setting the Orientation of a MapView

Screen Shot 2014-05-15 at 3.19.42 PMUsing the MKMapCamera, you can set the orientation of a map without messing with transforms on the view or even detecting the user’s heading (though that could be helpful too).

If you don’t want the animation, you can just set the new heading on the existing camera:

There’s some other really cool calls on the MKMapCamera (reference) like heading, pitch and altitude. That combined w/ setShowsBuildings on the map can create some cool effects.

Since it was new in iOS 7, you may want to call…

…to make sure it’s safe.