Custom MKAnnotation with drag & drop animation
I have an annotation with custom image and drag'n'开发者_高级运维drop support. But I need to animate the annotation the same way default Google pin is animated. That means the annotation should "jump up" when I drag it and "fall down" when I release it.
I was quite surprised that this animation isn't working anymore when I change annotation's image.
Thanks.
I have found the answer here: Subclassing MKAnnotationView and overriding setDragState. I used bad keywords when I was trying to find the answer before.
精彩评论