I have a query regarding Dropping Multiple Pins On Map when Co-ordinates are given using Mapkit in iPhone.
Using Mapkit I am able to see the map at given latitude and longitude.
I am also able to drop a pin on one particular location.
However I have a array of lat and long and I want to show pins for them all.
How to achieve this?
I tried adding [mapView addAnnotation:pin] in loop, each time updating coordinates but it is not working.
Please help in this regard.
Do not using [mapView addAnnotation:pin] in loop,you can use this API: [mapView addAnnotations:pinsArray]. It works for me.
This is a screenshot of my App using multiple pins :
Nearby Dovebox http://dovebox.l99.com:81//Home_files/screenshots/Nearby.png