Instance Property

draggable

A Boolean indicating whether the annotation view is draggable.

Declaration

@property(nonatomic, getter=isDraggable) BOOL draggable;

Discussion

Setting this property to YES makes an annotation draggable by the user. If YES, the associated annotation object must also implement the setCoordinate: method. The default value of this property is NO.

Setting this property to YES, lets the map view know that the annotation is always draggable. In other words, you cannot conditionalize drag operations by attempting to stop an operation that has already been initiated; doing so can lead to undefined behavior. Once begun, the drag operation should always continue to completion.

See Also

Supporting Drag Operations

- setDragState:animated:

Sets the current drag state for the annotation view.

dragState

The current drag state of the annotation view.