Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. func mapView(_ mapView: MKMapView, annotationView view: MKAnnotationView, didChange newState: MKAnnotationViewDragState, fromOldState oldState: MKAnnotationViewDragState) {
  2. switch newState {
  3. case .starting:
  4. view.dragState = .dragging
  5. print("start")
  6. case .ending, .canceling:
  7. view.dragState = .none
  8. print("end")
  9.  
  10. // Code to open Add new Annotation
  11.  
  12. default: break
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement