How to change the centre point of MKAnnotation
I am using MKMapkit for map-section in my app. I have to display a pin image
You need to set appropriate value to centerOffset property of annotation view:
centerOffset
By default, the center point of an annotation view is placed at the coordinate point of the associated annotation. You can use this property to reposition the annotation view as needed. This x and y offset values are measured in pixels. Positive offset values move the annotation view down and to the right, while negative values move it up and to the left.
精彩评论