Skip to content

Instantly share code, notes, and snippets.

@Morse-Code
Created April 29, 2013 03:09
Show Gist options
  • Save Morse-Code/5479505 to your computer and use it in GitHub Desktop.
Save Morse-Code/5479505 to your computer and use it in GitHub Desktop.
Get reusable map pin; specify color of pin.
+ (NSString *)reusableIdentifierForPinColor :(MKPinAnnotationColor)paramColor
{
NSString *result = nil;
switch (paramColor) {
case MKPinAnnotationColorRed:
{
result = REUSABLE_PIN_RED;
break;
}
case MKPinAnnotationColorGreen:
{
result = REUSABLE_PIN_GREEN;
break;
}
case MKPinAnnotationColorPurple:
{
result = REUSABLE_PIN_PURPLE;
break;
}
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment