2

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.

Pugalmuni
  • 9,350
  • 8
  • 56
  • 97

1 Answers1

3

To display title and subtitle your annotation object you add to map must respond to -title and -subTitle messages (defined in MKAnnotation protocol as optional).

Edit: You can also obtain information about given location using MKReverseGeocoder class that queries google based servises for that and returns data via its delegate (see MKReverseGeocoderDelegate protocol).

Vladimir
  • 170,431
  • 36
  • 387
  • 313
  • i have already used MKAnnotation protocol and i have disaplyed the title statically. I want to display the title dynamically when i am find the current location at any place. – Pugalmuni Mar 01 '10 at 11:51