Instance Method

setSelected:animated:

Sets the selection state of the annotation view.

Declaration

- (void)setSelected:(BOOL)selected animated:(BOOL)animated;

Parameters

selected

Contains the value YES if the view should display itself as selected.

animated

Set to YES if the change in selection state is animated.

Discussion

You should not call this method directly. An MKMapView object calls this method in response to user interactions with the annotation.

See Also

Managing the Selection State

selected

A Boolean value indicating whether the annotation view is currently selected.