-1

I have a view which has couple of location locations listed in a table view. If user clicks on any cell the app needs to display the Mapview with the location clicked with callout. Till now i have been able to show all the locations on the map view but don't know how to display the callout on the clicked one.

Please help.

Thanks,

Ashutosh
  • 5,614
  • 13
  • 52
  • 84
  • have you tried setting the clicked location as the center for the region, and setRegion animated? – Nitin Alabur Jan 08 '13 at 18:48
  • possible duplicate of [MKAnnotationView doesn't show callout](http://stackoverflow.com/questions/8168981/mkannotationview-doesnt-show-callout) – vikingosegundo Jan 09 '13 at 04:57

1 Answers1

1

I assume you have a way of knowing which row in your table view corresponds to which MKAnnotation. In that case, you can just use

- (void)selectAnnotation:(id < MKAnnotation >)annotation animated:(BOOL)animated

to programmatically select the annotation you're interested in.

jmstone617
  • 5,707
  • 2
  • 24
  • 26