Instance Method

selectAnnotation:animated:

Selects the specified annotation and displays a callout view for it.

Declaration

- (void)selectAnnotation:(id<MKAnnotation>)annotation animated:(BOOL)animated;

Parameters

annotation

The annotation object to select.

animated

If YES, the callout view is animated into position.

Discussion

If the specified annotation is not onscreen, and therefore does not have an associated annotation view, this method has no effect.

See Also

Managing Annotation Selections

annotationVisibleRect

The visible rectangle where annotation views are currently being displayed.

selectedAnnotations

The annotations that are currently selected.

- deselectAnnotation:animated:

Deselects the specified annotation and hides its callout view.