Upravit

Sdílet prostřednictvím


MKMapView.DequeueReusableAnnotation Method

Definition

Overloads

DequeueReusableAnnotation(String)

Returns a reusable annnotation view.

DequeueReusableAnnotation(String, IMKAnnotation)

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

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

Returns

A reusable annotation view.

Attributes

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.

Applies to

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
annotation
IMKAnnotation

Returns

Attributes

Applies to