title: How can i change mapkit annotation detail view background color?
body: <p>Hi am trying to change the annotation detail view(show in map image) into a custom design like the second image.</p>
  
  <p>How can i change that background image and all?</p>
  
  <p>my current code is</p>
  
  <pre><code>- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id)annotation {
  
      mapView.showsUserLocation = YES;
      if([annotation isKindOfClass:[MKUserLocation class]])
          return nil;
  
  
      static NSString *identifier = @"myAnnotation";
      MKPinAnnotationView * annotationView = (MKPinAnnotationView*)[_MAPVIEW dequeueReusableAnnotationViewWithIdentifier:identifier];
      if (!annotationView)
      {
  
          annotationView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:identifier];
          annotationView.pinColor = MKPinAnnotationColorPurple;
  
          annotationView.canShowCallout = YES;
      }else {
          annotationView.annotation = annotation;
      }
  
      UIButton *infoButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
  
  
      [infoButton addTarget:self action:@selector(showDetailView) forControlEvents:UIControlEventTouchUpInside];
      annotationView.rightCalloutAccessoryView = infoButton;
  
      UIImageView *imageV=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"pin.png"]];
      annotationView.leftCalloutAccessoryView=imageV;
      return annotationView;
  }
  </code></pre>
  
  <p>current annotation detail view design(when i click on pin then i can see the annotation detail view )</p>
  
  <p><img src="https://i.stack.imgur.com/zvixf.png" alt="enter image description here"></p>
  
  <p>but i want something like this design</p>
  
  <p><img src="https://i.stack.imgur.com/8jV2T.png" alt="enter image description here"></p>
  
  <p>please help  me.</p>