0

Can you help me with MKPointAnnotation? I would like to replace the annotation text with an image. For example, "1094_00_m.jpg" should display the image that corresponds with the filename rather than the filename. The image thumbnail will appear in the white area. It this possible?

Position of image

Luigi
  • 4,129
  • 6
  • 37
  • 57
Patrik Dendis
  • 313
  • 6
  • 20
  • Just to be clear, you're trying to alter the callout bubble, not the annotation pin itself? Perhaps http://stackoverflow.com/a/17772487/1271826 or http://stackoverflow.com/a/14619356/1271826. – Rob Apr 10 '15 at 13:47

1 Answers1

0

Supply a custom MKAnnotationView. Now simply override setSelected:animated: to show a custom view instead of the built-in callout. What goes in the custom view is completely up to you.

matt
  • 515,959
  • 87
  • 875
  • 1,141