Skip to content

Instantly share code, notes, and snippets.

@ajamaica
Created June 2, 2014 20:02
Show Gist options
  • Select an option

  • Save ajamaica/adea1d5b668c88198391 to your computer and use it in GitHub Desktop.

Select an option

Save ajamaica/adea1d5b668c88198391 to your computer and use it in GitHub Desktop.
static NSString *identifier = @"RoutePinAnnotation";
MKPinAnnotationView* pinView = [[MKPinAnnotationView alloc]
initWithAnnotation:annotation reuseIdentifier:identifier] ;
pinView.animatesDrop=YES;
pinView.canShowCallout=YES;
UIButton* rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
[rightButton setTitle:annotation.title forState:UIControlStateNormal];
[rightButton addTarget:self
action:@selector(goTOMenu_Action:)
forControlEvents:UIControlEventTouchUpInside];
pinView.rightCalloutAccessoryView = rightButton;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment