Created
April 19, 2013 18:59
-
-
Save asb-school/5422424 to your computer and use it in GitHub Desktop.
find annotation and select it
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
| // -------------------------------------------------------------- | |
| // FIND ANNOTATION WITH GIVEN TREE ID | |
| - (void)findAnnotationWithGivenTreeId:(NSInteger)givenTreeId | |
| { | |
| // Search all current map annotations | |
| // for (id<TreeAnnotation> annotation in _mapView.annotations) | |
| for (TreeAnnotation *annotation in _mapView.annotations) | |
| { | |
| if (annotation.treeId == givenTreeId) | |
| { | |
| [_mapView selectAnnotation:annotation animated:YES]; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment