开发者

Custom MKAnnotation with drag & drop animation

开发者 https://www.devze.com 2023-02-05 06:24 出处:网络
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 \"ju

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

精彩评论

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