2

I'm using the MapKit framework and I have used pins to display the exact address location of the contacts in my addressbook. Till now everything is working fine. But when i click on a pin I need to show the name of the contact, that particular pin represents. Right now I cant figure out a way to do this.

User97693321
  • 3,336
  • 7
  • 45
  • 69
Xavi Valero
  • 2,047
  • 7
  • 42
  • 80

2 Answers2

1

Setting the "title" and "subtitle" members of an MKAnnotation should do the job.

You can take a look at the MKMapView sample for Speedy I just wrote.

0

Search on google : Subclass MKPinAnnotation

Oliver
  • 23,072
  • 33
  • 138
  • 230