title: Custom image for annotation pin in mkmapview
body: <p>Custom annotation pin changes to default red pin at long tap.</p>
  
  <pre><code>  - (MKAnnotationView *) mapView:(MKMapView *)mapingView viewForAnnotation:(id &lt;MKAnnotation&gt;) annotation {
   MKPinAnnotationView *annView = nil;
          if(annotation != mapingView.userLocation) 
          {
  
              static NSString *defaultPinID = kDEFAULTPINID;
              annView = (MKPinAnnotationView *)[mapingView dequeueReusableAnnotationViewWithIdentifier:defaultPinID];
              if ( annView == nil ) 
              annView = [[MKPinAnnotationView alloc]
                                               initWithAnnotation:annotation reuseIdentifier:defaultPinID] ;
  
  
              annView.canShowCallout = YES;
              annView.image = [UIImage imageNamed:@"icon.png"];//sets image for default pin
  
  }
  return annView;
  }
  
  
  - (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKPinAnnotationView *)view 
      { 
          if ([[view.annotation title] isEqualToString:@"AnnotationTitle"] ) {
  
               view.image = [UIImage imageNamed:@"selected_IconImage.png"];
         }
      }
  </code></pre>
  
  <p>Just touching the annotation pin the selected image appears. 
  But on long tap on the pin custom image reverts to default red pin.</p>
  
  <p>How to fix this issue?</p>