MKAnnotationView GetWeatherAnnotationView (MKMapView map, IMKAnnotation annotation) { MKAnnotationView annotationView = mapView.DequeueReusableAnnotation ("annotationViewID"); if (annotationView == null) annotationView = new WeatherAnnotationView (annotation, "annotationViewID"); annotationView.Annotation = (MKAnnotation) annotation; return annotationView; }
MKAnnotationView GetWeatherAnnotationView(MKMapView map, NSObject annotation) { MKAnnotationView annotationView = mapView.DequeueReusableAnnotation("annotationViewID"); if (annotationView == null) { annotationView = new WeatherAnnotationView(annotation, "annotationViewID"); } annotationView.Annotation = (MKAnnotation)annotation; return(annotationView); }