MKMapView.DequeueReusableAnnotation MKMapView.DequeueReusableAnnotation Method

Definition

Overloads

DequeueReusableAnnotation(String) DequeueReusableAnnotation(String)

Returns a reusable annnotation view.

DequeueReusableAnnotation(String, IMKAnnotation) DequeueReusableAnnotation(String, IMKAnnotation)

DequeueReusableAnnotation(String) DequeueReusableAnnotation(String)

Returns a reusable annnotation view.

[Foundation.Export("dequeueReusableAnnotationViewWithIdentifier:")]
public virtual MapKit.MKAnnotationView DequeueReusableAnnotation (string withViewIdentifier);
abstract member DequeueReusableAnnotation : string -> MapKit.MKAnnotationView
override this.DequeueReusableAnnotation : string -> MapKit.MKAnnotationView

Parameters

withViewIdentifier
String String

The identifier that is used to identify the annotation view for reuse.

Returns

A reusable annotation view.

Remarks

Allows annotation view that are not longer on the screen to be reused for annotations that are on the screen. This is a performance optimization that reduces the number of annotation views that need to be created.

DequeueReusableAnnotation(String, IMKAnnotation) DequeueReusableAnnotation(String, IMKAnnotation)

[Foundation.Export("dequeueReusableAnnotationViewWithIdentifier:forAnnotation:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual MapKit.MKAnnotationView DequeueReusableAnnotation (string identifier, MapKit.IMKAnnotation annotation);
abstract member DequeueReusableAnnotation : string * MapKit.IMKAnnotation -> MapKit.MKAnnotationView
override this.DequeueReusableAnnotation : string * MapKit.IMKAnnotation -> MapKit.MKAnnotationView

Parameters

identifier
String String

Returns

Applies to