Created
June 2, 2014 20:02
-
-
Save ajamaica/adea1d5b668c88198391 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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