简体   繁体   English

自定义MapKit MKAnnotation标注气泡以在目标c中显示多行文本

[英]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. 在IOS中我有一个带有几个MKAnnotation的地图,点击其中一个我看到带有文本的气泡,但是文字太长,然后它没有完整显示。

I'm looking for a way to display text in a multiline TextView, or something similar, so that it is fully displayed. 我正在寻找一种在多行TextView或类似的东西中显示文本的方法,以便完全显示。

iOS 9.0 onwards you can use detailCalloutAccessoryView. 从iOS 9.0开始,您可以使用detailCalloutAccessoryView。 You can add your textView in there. 您可以在那里添加textView。 Here is the documentation link - https://developer.apple.com/reference/mapkit/mkannotationview?language=objc 这是文档链接 - https://developer.apple.com/reference/mapkit/mkannotationview?language=objc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM