title: How to select a map pin programmatically
body: <p>I am new to Maps Concept.  </p>
  
  <p>Please find the attached image once.</p>
  
  <p><img src="https://i.stack.imgur.com/SrDnu.png" alt="enter image description here"></p>
  
  <p>when i click the "pin" i am getting message says "Admire your smile" or any text..... Now i want like... when we select the table view,  i need to raise that message for that pin(with out user interaction for that pin)... </p>
  
  <p>I am using below code for This maps and pins.</p>
  
  <pre><code>    -(void) viewWillAppear:(BOOL)animated
  {
  [super viewWillAppear:YES];
  customLocation.latitude=[casesobjc.latitude_string doubleValue];
          customLocation.longitude=[casesobjc.longitude_string doubleValue];
   MapViewAnnotation *newAnnotation = [[MapViewAnnotation alloc] initWithTitle:casesobjc.locationForMap_string andCoordinate:customLocation];
  [mapView addAnnotation:newAnnotation];
  }
  - (MKAnnotationView *) mapView: (MKMapView *) mapView viewForAnnotation: (id&lt;MKAnnotation&gt;) annotation {
   MKPinAnnotationView *pin = (MKPinAnnotationView *) [mapView dequeueReusableAnnotationViewWithIdentifier: @"annotation_ID"];
  if (pin == nil) {
          pin = [[MKPinAnnotationView alloc] initWithAnnotation: annotation reuseIdentifier: @"annotation_ID"];
      } else {
          pin.annotation = annotation;
      }
      pin.pinColor = MKPinAnnotationColorPurple;
      pin.animatesDrop = YES;
      pin.canShowCallout=YES;
  return pin;
  }
  </code></pre>
  
  <p>Now i will show all the pins once like below.</p>
  
  <p><img src="https://i.stack.imgur.com/Thrw2.png" alt="enter image description here"></p>
  
  <p>How to do When we click on table view i need to show the title for that pin like how we show when we select a pin?</p>
  
  <p>Thanks in Advance</p>