title: How do I know which callout has been clicked?
body: <p>I'm having alot of trouble trying to identify which callout bubble has been clicked.</p>
  
  <p>Is there a way of identifying the callout bubbles some how as I've tried a number of examples on here but because I'm quite new to Objective C I can't seem to work out how to use them.</p>
  
  <p>The following answers I've been trying to use but I'm confused with them</p>
  
  <p><a href="https://stackoverflow.com/questions/11080275/how-to-track-which-annotation-callout-clicked">How to track which annotation callout clicked</a></p>
  
  <p>I'm looking at tagging the annotations but thats even confusing me. :(</p>
  
  <p>Taken from the second answer in the above link:</p>
  
  <pre><code>- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id&lt;MKAnnotation&gt;)annotation
  {
  
  if ([annotation isKindOfClass:[MKUserLocation class]]){
      return nil;
  
      if(annotation.tag == 111)
          //Do something
      else
          //Do some other thing
  }
  </code></pre>
  
  <p>How does the first part of this snippet work, perhaps if I understood it better I'd know what I'm working with.</p>
  
  <p>Also how would I go about retrieving the tags when the callout is clicked so I can make the app respond respectively.</p>