Rotate the content of a MKMapView

前端 未结 2 1012
别那么骄傲
别那么骄傲 2021-01-15 05:02

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

float myHeadingValue = newHeading.trueHeading;

and for rotating

相关标签:
2条回答
  • 2021-01-15 05:14

    I've solved it creating in Interface Builder a smaller UIView and putting the MKMapView into it. The new UIView does not show the leftover map.

    0 讨论(0)
  • 2021-01-15 05:32

    There may be an issue with the google logo being out of shot doing this though. Apple have contacted me to say that my app contravened the guidelines because the google logo was invisible.

    0 讨论(0)
提交回复
热议问题