Created
April 29, 2013 03:09
-
-
Save Morse-Code/5479505 to your computer and use it in GitHub Desktop.
Get reusable map pin; specify color of pin.
This file contains 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
+ (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