title: How to adjust the frame of right accessor to top right in MapView annotation?
body: <p>I want to add the right accessor image(cross image) to the top right corner as shown in the image below, but i am not able to get the code for it:
  I am using the following code but its not giving me what i need.I need the cross button at the place shown in the image below.</p>
  
  <pre><code>annView.leftCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeContactAdd];
  
         UIImage *listImage = [UIImage imageNamed:@"Close_normal.png"];
         UIButton *listButton = [UIButton buttonWithType:UIButtonTypeCustom];
  
         // get the image size and apply it to the button frame
        // listButton.frame = CGRectMake(0,0,56,68);
  
         CGRect listButtonFrame = listButton.frame;
  
  
      listButtonFrame.size = listImage.size;
         listButton.frame = listButtonFrame;
  
         [listButton setImage:listImage forState:UIControlStateNormal];
  
     annView.rightCalloutAccessoryView = listButton;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/rw7pe.png" alt="enter image description here"></p>
  
  <p>And then also what i have to do is when i click on the cross button it should close the info pop up and remove the annotation</p>
  
  <pre><code>- (void) mapView:(MKMapView *)mv annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
   {
  if( // left accessor is clicked then execute this code)  // what should i write here
   {
   SiteAnnotation *site = (SiteAnnotation *)view.annotation;
    if(site.category == -1) {
     if(addressAnnotation) {
         [mapView removeAnnotation:addressAnnotation];
  AddViewController *vc = [[[AddViewController alloc]        initWithCoordinate:addressAnnotation.coordinate] autorelease];
  
  
     [self.delegate pushViewController:vc animated:YES];
  
     }
   }
          else {
               [self showSiteDetails:site.identifier];
               }
  }
   else if (// if right accessor cross image is clicked)
  {
    // Then here the code to dismiss the pop up and annotation pin on map
  
  }
  }
  </code></pre>