You are getting the default pin, instead of your image because you are creating a standard MKPinAnnotationView.
To provide your own image instead of the pin, use an MKAnnotationView instead, or a subclass of it. Dimitris Tavlikos Software Developer Email: [email protected] Twitter: http://twitter.com/#!/dtavlikos Blog: http://software.tavlikos.com On Aug 2, 2011, at 7:27 PM, vitramir wrote: > Path is right becouse code like > > 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.AddSubview(new UIImageView(UIImage.FromFile("Images/pin.png")); > > return Pin; > }; > > works, but it shows default image and my together > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Custom-Pin-image-tp3712014p3712933.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
