Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Hi I need to do an application iPhone I need to make a plan et use MKAnnotation with touch can you help me thanks

Hi I need to do an application iPhone I need to make a plan et use MKAnnotation with touch can you help me

thanks

Hi so what are you trying to do ? touchBegan etc.. and this happens? and what is MKAnnotation? I'm more likely in games app .

1 Answer

Hi @axelbouaziz

Could you give some more information about what you want to do with the MKAnnotation?

You need to use <MKAnnotation> as a protocol with an MKAnnotationView. The MKAnnotation has three parts:

  • title
  • subtitle
  • coordinate

The title and subtitle are used when a user taps on the annotation, and the coordinate tells the map where to place the annotation on the map.

You can check this tutorial out and see if it helps: Creating Custom Map Annotations

Hope this helps, Lee