Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customize MapKit MKAnnotation Callout bubble to display a multiline text in objective c

In IOS I have a map with several MKAnnotation, Clicking on one of them I see the bubble with a text, but the text is too long, then it is not displayed in its entirety.

I'm looking for a way to display text in a multiline TextView, or something similar, so that it is fully displayed.

like image 976
Massimiliano D'Amico Avatar asked May 22 '14 18:05

Massimiliano D'Amico


1 Answers

iOS 9.0 onwards you can use detailCalloutAccessoryView. You can add your textView in there. Here is the documentation link - https://developer.apple.com/reference/mapkit/mkannotationview?language=objc

like image 165
slonkar Avatar answered Oct 16 '22 22:10

slonkar