Instance Method

prepareForReuse()

Called when the view is removed from the reuse queue.

Declaration

func prepareForReuse()

Discussion

The default implementation of this method does nothing. You can override it in your custom annotation views and use it to put the view in a known state before it is returned to your map view delegate.

See Also

Creating and Preparing an Annotation View

init(annotation: MKAnnotation?, reuseIdentifier: String?)

Initializes and returns a new annotation view.

func prepareForDisplay()

Notifies the annotation view that it is about to be displayed on the map.