</pre><pre>
Your Uiannotationview is always drawn at the same scale, the map ' zoom level doesn ' t matter. That ' s why centeroffset isn ' t bound with the zoom level.
Annview.centeroffset is what you need. If you do not have a your PIN at the good location (for example, the bottom center move a little while you are change the zoo M level), it ' s because you didn ' t set the right centeroffset.
By the way, if your want to set the "coordinate" at the bottom center of the image, the X coordinate of your CEN Teroffset should is 0.0f, as Annotationview Center the image by default. So try:
Annview.centeroffset = Cgpointmake (0,-IMAGEHEIGHT/2);
Or
Setting The Centeroffset often moves the image arround when user rotates or zooms the map, as anchor-point are still set to The center of the image instead of its lower center.
You can set the anchor point of the "annotation to" bottom center of you custom image as follows:
YourAnnotation.layer.anchorPoint = Cgpointmake (0.5f, 1.0f);
This is way when user zooms or rotates the map your custom annotation would never move from its coordinates on the map.
Http://stackoverflow.com/questions/8165262/mkannotation-image-offset-with-custom-pin-image