I have parsed a KML file and i have placing annotations from file on the map. I have added right button for annotation view, on click which opens a next detail view. The problem is how to send some information (e.g. name or address) to the next view.
Click here for download the template. (i have used example KMLViewer of Apple for parse KML file).
Thanks in advance.
You create your own annotation class that keeps track of any data that you might want to be passing along.
Then use the
initWithCoordinatemethod to create each annotation.You may also want to include a reference to the mapView in the init method so that you can properly close the annotation from the Annotation object code. Alternatively you can just do a setMapView after creation.