Hello,
I have this code:
Map.GetViewForAnnotation=delegate(MKMapView Map, NSObject annotation)
{
if(annotation is MKUserLocation)return null;
mkaPlace PlaceAnnotation=(mkaPlace)annotation;
MKPinAnnotationView Pin=new MKPinAnnotationView(PlaceAnnotation, "place");
Pin.AnimatesDrop=true;
Pin.CanShowCallout=true;
Pin.Image=UIImage.FromFile("Images/pin.png");
return Pin;
};
But it creates pin with default image. Can somebody tell me what is wrong?
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Custom-Pin-image-tp3712014p3712014.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch