I have a function which zooms half way into the annotation which has been placed on the map, and the user's location, so that both can be seen on the screen. Is there a method for the annotation which displays its 'contents' i.e. simulate pressing on it? It would be ideal for it to pop open as soon as it's zoomed in.
Thanks in advance.
You can select an annotation with this code: You need to modify the objectAtIndex from 0 to whatever number to display the annotation you wish.
[self.mapView selectAnnotation:[[self.mapView annotations] objectAtIndex:0] animated:YES];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With