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
 
    }
}

Popular posts from this blog

How to Use pagination ScrollView in Swift

UISearchBar search text color , background color swift 3

How To Add Multiple Line in Lable in Swift Ios