How TO Work MKAnotation In Swift Ios
func mapView(mapView: MKMapView!, annotationView view:
MKAnnotationView!, didChangeDragState newState:
MKAnnotationViewDragState, fromOldState oldState:
MKAnnotationViewDragState) {
switch (newState) {
case .Starting:
view.dragState = .Dragging
case .Ending, .Canceling:
view.dragState = .None
default: break
}
}