Using mapkit framework I want to display a arrow and rotate it, depending on the viewing direction of the user.
My problem is that the rotation center is in the lower left corner of the image.
I read this article about setting the roation center of MkAnnotationViews
:
How to set the rotation center of an MKAnnotationView
They say I can use annotationView.layer.anchorPoint
to set the rotation center of the view but starting IOS6 mapkit framework the MkAnnotationView.layer
property seems to be read only and you can't access annotationView.layer.anchorPoint
at all. I doesn't even compile.
Is there another way ?