Ian Vink
Ian Vink

Reputation: 68790

MonoTouch: Draggable MKAnnotationView

I am trying to implement a draggable MKAnnotationView in MonoTouch.

In the iOS docs there is a @property called Draggable on the MKAnnotationView, but not on the Monotouch Implementation.

Is there another way to implement a draggable MKAnnotationView in Monotouch.

var anv = new MKAnnotationView (myAnnotation, "ILoveMonoTouch"){
      Draggable = true   <== ERROR
}; 

Upvotes: 2

Views: 237

Answers (1)

poupou
poupou

Reputation: 43553

For some reason (likely a bug) this property is implemented in MKPinAnnotationView not MKAnnotationView and this contradict Apple's documentation. I'll look into this and ensure it's fixed in future MonoTouch releases.

EDIT the property dragState has the same issue

UPDATED UPDATE this is fixed in the just released 5.0.2

Upvotes: 4

Related Questions