title: How to identify when a annotation is pressed which one it is
body: <p><strong>As you can see I've created a new annotation right here</strong></p>
  
  <pre><code>var pin = CustomPointAnnotation()
  pin.coordinate = CLLocationCoordinate2D(latitude: latitude, longitude: longitude)
  pin.title = "Bus Stop"
  pin.subtitle = "City Stand D"
  pin.imageName = "pin"
  
  mapView.addAnnotation(pin)
  </code></pre>
  
  <p>Now when a user clicks on the annotation, I want to run a method. But my question is:</p>
  
  <blockquote>
    <p><em>How do I know which annotation they clicked on?</em></p>
  </blockquote>
  
  <p>Then the problem is I am using a loop to create multiple annotations so I can't set the tag because it will just become the last set tag.</p>
  
  <p><strong>Then here I want to print a tag which can be set differently for each annotation</strong></p>
  
  <pre><code>func mapView(mapView: MKMapView, didSelectAnnotationView view: MKAnnotationView) {
      print(view.tag)
  }
  </code></pre>