I am doing mapview. In my app there is code which gets current location of the user in latitude and longitude. Using this coordinates i am creating a soap request. In response i will get information(zip,city,state,country,coordinates) of locations. I have saved this information in NSDictionary.

On the tap of detail disclosure button new view will be loaded. And in this new view, information which i retrieved from the server will be displayed.

Upto this everything is fine. I have more than one annotations in the map. But when particular annotation is tapped how will i implement the code to show the information (which i get from the server)related to that annotation.

I hope I am clear in expressing my problem. Feel free to ask further details.

Ok. There are more than one annotations. How will i implement further to get information corresponding to that annotation.stackoverflow.com/questions/5583501/… this is the link which has a same question. Hope you can get some more clarity looking at that question also.
–
HarshJul 25 '11 at 10:37

Yeah i understand what you want but it seems my answer was unclear. ;)
–
yinkouJul 25 '11 at 10:44

Every time you add an annotation to your map you can store custom information in it. I don't know where you get that from you have to handle that on your own. By extending your MapLocation class with methods or properties. When the user taps the calloutAccessory you can pass your information from this particular annotation to your new viewController in the delegate method.
–
yinkouJul 25 '11 at 10:48

All the information is in MapLocation class. Now what to implement in the method - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
–
HarshJul 25 '11 at 12:55

So you want to know, how to pass the data in MapLocation to the new ViewController? Can you post your implementation of (MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)controlas far you have it?
–
yinkouJul 25 '11 at 14:14