iphone - MkMapView drop a pin on touch -
i struggling unearth standard way drop pin on mkmapview based on touch input. there isnt standard way, worth asking. if have implement myself best approach add gesture recogniser pick tap on map view.
yes, can use uilongpressgesturerecognizer
this.
this previous answer of mine has details sample code:
how add push pin mkmapview(ios) when touching?
to animate drop, in viewforannotation
, return mkpinannotationview
animatesdrop
set yes.
Comments
Post a Comment