title: MKMapview change annotation image
body: <pre><code>- (MKAnnotationView *)mapView:(MKMapView *)mV viewForAnnotation:(id&lt;MKAnnotation&gt;)annotation {
      NSLog(@"annotion");
  
      CGSize imgSize;
      MKAnnotationView *pinView = nil;
      static NSString *defaultPinID = @"pin";
      pinView = (MKAnnotationView *)
      [self.m_mapView dequeueReusableAnnotationViewWithIdentifier:defaultPinID];
  
      pinView = [[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:defaultPinID];
      pinView.canShowCallout = NO;
      pinView.image = [UIImage imageName:@"blue.jpg"]; 
      return pinView;
  }    
  
  
  - (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view{
      view.image = [UIImage imageName:@"orange.jpg"]
  }
  </code></pre>
  
  <p>I added annotations on mapView with image(i.e blue image).When i tap a annotation i changed image (i.e. orange image). then i tap on another annotation change annotation(i.e.orange image) to (i.e blue image) and change selected annotation to (i.e.orange image).any help will be appricated.thanks in advance    </p>