Guest User

Untitled

a guest
Jul 15th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. var eventAnnotation = [(eventTitle:String, eventLocation:String, eventLat:CLLocationDegrees, eventLong:CLLocationDegrees)]()
  2.  
  3. for event in eventAnnotation {
  4. let annotation = MKPointAnnotation()
  5. annotation.title = eventAnnotation.eventTitle
  6. annotation.subtitle = eventAnnotation.eventLocation
  7. annotation.coordinate = CLLocationCoordinate2D(latitude: eventAnnotation.eventLat, longitude: eventAnnotation.eventLong)
  8. eventMap.addAnnotation(annotation)
  9. }
Add Comment
Please, Sign In to add comment