Share via


IMKMapViewDelegate.GetViewForAnnotation(MKMapView, IMKAnnotation) Method

Definition

Returns the MKAnnotationView associated with the annotation.

[Foundation.Export("mapView:viewForAnnotation:")]
[Foundation.OptionalMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual MapKit.MKAnnotationView? GetViewForAnnotation(MapKit.MKMapView mapView, MapKit.IMKAnnotation annotation);
[<Foundation.Export("mapView:viewForAnnotation:")>]
[<Foundation.OptionalMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetViewForAnnotation : MapKit.MKMapView * MapKit.IMKAnnotation -> MapKit.MKAnnotationView
override this.GetViewForAnnotation : MapKit.MKMapView * MapKit.IMKAnnotation -> MapKit.MKAnnotationView

Parameters

mapView
MKMapView
annotation
IMKAnnotation

Returns

Attributes

Applies to