Share via


MKMapView.DequeueReusableAnnotation 方法

定義

多載

DequeueReusableAnnotation(String)

傳回可重複使用的標注檢視。

DequeueReusableAnnotation(String, IMKAnnotation)

DequeueReusableAnnotation(String)

傳回可重複使用的標注檢視。

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

參數

withViewIdentifier
String

用來識別批註檢視以供重複使用的識別碼。

傳回

可重複使用的注釋檢視。

屬性

備註

允許不再在螢幕上的批註檢視重複使用於畫面上的批註。 這是效能優化,可減少需要建立的批註檢視數目。

適用於

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

參數

identifier
String
annotation
IMKAnnotation

傳回

屬性

適用於