Tagged: mapkit

Building Custom Map Annotation Callouts – Part 2

19

Part 1 showed how to build a custom map callout that provides more content flexibility than the native callout, but maintains the expected look and behavior. In part 2 we will add a very common element of the map interface into our custom callout – the accessory button. At first glance this seems simple: just [...]

Building Custom Map Annotation Callouts – Part 1

52

Custom Map Callout ScreenshotThe iPhone’s Map Annotation Callouts are very useful for displaying small amounts of information when a map pin (annotation) is selected. One problem with the standard callouts present in iOS is the inability to change the height of the callout. For example, you may want to display a logo or other image that is taller than the default callout. Or you may want to display an address and phone number on separate lines under the title. Both of these scenarios are impossible using the standard iOS callouts.

There are many steps to building a good replacement callout with the proper look and behavior, but it can be done.

Part 2 covers adding a button to the custom callout, which is not as simple as it sounds.