How to set MKPinAnnotation so that bottom of image points to location instead of center of image
问题 How can I move the pin image so that the bottom of the image points to the location (like the default pin). Currently the center of the image points to that location (San Francisco). 回答1: You'll need to calculate the number of pixels to offset and then set the centerOffset property. 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