Initializes and returns a new annotation view.
- iOS 3.0+
- macOS 10.9+
- tvOS 9.2+
The annotation object to associate with the new view.
If you plan to reuse the annotation view for similar types of annotations, pass a string to identify it. Although you can pass
nilif you do not intend to reuse the view, reusing annotation views is generally recommended.
The initialized annotation view or
nil if there was a problem initializing the object.
The reuse identifier provides a way for you to improve performance by recycling annotation views as they are scrolled on and off of the map. As views are no longer needed, they are moved to a reuse queue by the map view. When a new annotation becomes visible, your application can request a view for that annotation by passing the appropriate reuse identifier string to the
dequeue method of