Setting MapKit MKAnnotation Bubble call to display multi-line text in the lens c

In iOS, I have a map with several MKnnotation. By clicking on one of them, I see a bubble with text, but the text is too long, it does not appear completely.

I am looking for a way to display text in a multi-line TextView or something similar so that it is fully displayed.

+6
source share
1 answer

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

+1
source

Source: https://habr.com/ru/post/969716/


All Articles