Created
February 10, 2014 09:36
-
-
Save neiraza/8912978 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
- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view | |
{ | |
// MKAnnotationViewを拡張した独自Annotation | |
if ([view.annotation isMemberOfClass:[HogeAnnotationEx class]]) { | |
MapPin *pin = (HogeAnnotationEx *)view.annotation; | |
// 独自Annotationにタイプとか定義しとく | |
if (pin.type == hoge) { | |
LOG(@"user"); | |
} else if (pin.type == fuga) { | |
LOG(@"hoot"); | |
} else if (pin.type == foo) { | |
LOG(@"bot"); | |
} else { | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment