Iphone – How to Automatically Display Title/Subtitle on Map Annotation (pin)

annotationsiphonemap

I am loading an annotation onto my map view. The annotation displays as a pin when the map is loaded.

However, the title and subtitle do not appear on the pin automatically. Currently, the user is required to tap on the pin before the title displays.

Is there a way to get the title to display automatically on the pin when the map is loaded?

(This question is almost the same thing, but not quite there: To display the title for the current loaction in map in iphone because I already have the -title and -subtitle attributes defined in my object.)

Thanks

Best Answer

The method to call is "selectAnnotation:animated" from MKMapView.