Rotate MKMapView content

I need to rotate the content of the mapView according to the compass value:

float myHeadingValue = newHeading.trueHeading;

      

and to rotate the map i use this:

[mapView setTransform:CGAffineTransformMakeRotation( [self degreesToRadians:myHeadingValue] )];

      

but it rotates the view, not the content of the view.

How can I get it to rotate the content and not the whole view?

+2


source to share


2 answers


I decided to create a smaller UIView in Interface Builder and put MKMapView in it. The new UIView does not display the remaining map.



+2


source


The problem might be related to the google logo not working. Apple contacted me to say that my app was breaking the rules because the Google logo was invisible.



+5


source







All Articles