views:

130

answers:

2

does anyone know how to display more than one location on a map? i have a map w/ one pin at a lat/long point. I'd like to have pins for many locations.

another related question - if i wanted a map to display all McDonalds in the California, for example, is there a way to do this by feeding a search result from google maps into my app?

thanks in advance for any help/hints.

G.

+1  A: 

You can add as many MKAnnotation as you'd like, and you will see a pin for each of them. You can add multiple annotations at once by calling

[myMKMapView addAnnotations:(NSArray*)array];

instead of

[myMKMapView addAnnotation:(id <MKAnnotation>)];
Seamus Campbell
A: 

can you please provide the code i m also trying to solve this problem for some hours

STUPID PROGRAMMER
here's a good tutorial that helped me: http://www.switchonthecode.com/tutorials/building-an-earthquake-monitor-for-iphone-using-mapkit
hanumanDev