views:

2209

answers:

2

Hello,

how do I use custom placemarks instead of the standard pins with MapKit on the iPhone?

Regards

+3  A: 

You must extend the MKAnnotationView class, it has various properties you can set, the image property is t he one concern with the placemark image, and when you use MKPinAnnotationView the image property is the pin...hope that helps

Daniel
Thanks, Daniel. Using [pinAnnotations setImage:[UIImage imageNamed:@"info.png"]]; doesn't work. pinAnnotations is a MKAnnotationView class. Am I missing something?
Stefan
whats coming out as the image for the pin then nothing?
Daniel
The image is set. But it shows a pin as before. :-(
Stefan
Are you sure you arent using MKPinAnnotationView , MKAnnotationView doesnt know anything about the pin i dont think
Daniel
In your mapView:viewForAnnotation method set annotationView.image = [UIImage imageNamed:@"custom_pin.png"]. Be careful to make it big enough so it scales properly.
Miha Hribar
A: 

hello have you success for your problem because i have same probleme have you an anwers

jameson