I have an app that currently uses CGAffineTransformMakeRotation to manipulate a MKMapView in order to display the map with the correct orientation and size. With the release of iOS7 this method has become unreliable (map center keeps shifting). I am hoping to solve this with a more reliable solution.
Is there a way to rotate the map in code without using CGAffineTransformMakeRotation?
I looked at the MKMapCamera in hopes I could manipulate it into passing staic values to manipulate the map but there is no way to manually set the centerCoordinate and the eyeCoordinate.
You can rotate and pitch the map by setting a new
MKMapCamera
with-setCamera:animated:
.To set the rotation, give it a new
heading
parameter:You can also do a more fancy zoom with pitch and altitude change, showing buildings: