Search code examples
objective-cmapkitmkpointannotationmapkitannotation

MKPointAnnotation show image in label


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


Solution

  • 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.