I am using MKMapView in my Xamarin.IOS project. I have some customs annotation around userLocation. Once those annotations placed they can't be easily clicked because of userLocation bluedot. I need userLocation as well what I want is just disable userLocation dot.
I have tried this
public override void DidAddAnnotationViews(MKMapView mapView, MKAnnotationView[] views)
{
for (int i = 0; i < views.Count(); i++){
if(views[i].Annotation is MKUserLocation){
views[i].CanShowCallout = false;
views[i].UserInteractionEnabled = false;
views[i].Enabled = false;
//MKMoernUserLocationView;
}
}
}
views[] has 1 count at the begining but the condition doesn't meet. Has anyone got any idea what bit of piece i missed?