I am new to iphone development. I have created map applications and i displayed the cuurent locations and drop a pin to the current location. now i want to display the title and subtitle of the current location when i am clicking the pin. Please help me out.
Thanks.
To display title and subtitle your annotation object you add to map must respond to
-titleand-subTitlemessages (defined inMKAnnotationprotocol as optional).Edit: You can also obtain information about given location using
MKReverseGeocoderclass that queries google based servises for that and returns data via its delegate (seeMKReverseGeocoderDelegateprotocol).