2009-10-12 191 views
1

我怎样才能在MKAnnotation标题获得多行地址?
例如:MyAnnotation标题问题

MyAnnotation *ann = [[MyAnnotation alloc] init]; 
ann.title = @"abcdefjkskfjhsjkdhfsjdhfjkshdkfjskjfkjshdf "; 

MyAnnotation是设置标题我NSObject类。

但泡沫只显示一个线和另一条字幕,这样我怎么能得到多行全 文本?

回答

0

我读了是不容易的。您必须自定义标注泡泡。这个答案不是一个真正的解决方案,而是一个提示,如果它是值得的,它可以被做出。

https://blog.asolutions.com/2010/09/01/1283370619995.html

http://www.jakeri.net/2009/12/custom-callout-bubble-in-mkmapview-final-solution/

http://spitzkoff.com/craig/?p=81

更多关于这个话题:

How to customize the callout bubble for MKAnnotationView?

How to add a combobox and a button to the infoWindow on Google map?

How to add more details in MKAnnotation in iOS (iCodeBlogAnnoationView.m和WeatherAnnotationView.m)