title: Why isn't my annotation view changing image?
body: <p>I want to add a custom image for my pin, but for some reason it wont change to the newpin.png image. It still displays the default red pin. If anyone can help me I will deeply appreciate it.</p>
  
  <pre><code> - (MKAnnotationView *)mapView:(MKMapView *)mapViewIn viewForAnnotation:(id &lt;MKAnnotation&gt;)annotation {
  if (mapViewIn != self.mapView || [annotation isKindOfClass:[MKUserLocation class]]) {
      return nil;
  }
  static NSString *annotationIdentifier = @"places";
  MKPinAnnotationView *annotationView = (MKPinAnnotationView *)[self.mapView dequeueReusableAnnotationViewWithIdentifier:annotationIdentifier];
  if (!annotationView) {
      annotationView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:annotationIdentifier];
  
  }
  
  annotationView.animatesDrop = YES;
  annotationView.canShowCallout = YES;
  annotationView.image = [UIImage imageNamed:@"newpin.png"];
  
  UIButton *detailButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
  [detailButton addTarget:self action:@selector(annotationDetailButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
  annotationView.rightCalloutAccessoryView = detailButton;
  
  return annotationView;
  }
  </code></pre>