iphone - 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 Enter image details here as an Mk annotation. When I add annotations to the map view, the center of the image points to latitude and longitude. But I want to point the lower latitude and longitude of the image to the specified latitude and longitude. I am following the link to display annotations. What is the way to achieve the goal? Then please help

You must set the appropriate price for the property of the annotation view:

center offset

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 change the annotation view as needed. This x and y offset value is measured in pixels Positive offset value leads to the annotation view down and right, whereas negative values ​​move it up and down.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -