开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜