我怎樣才能在MKAnnotation標題獲得多行地址?
例如:MyAnnotation標題問題
MyAnnotation *ann = [[MyAnnotation alloc] init];
ann.title = @"abcdefjkskfjhsjkdhfsjdhfjkshdkfjskjfkjshdf ";
MyAnnotation是設置標題我NSObject類。
但泡沫只顯示一個線和另一條字幕,這樣我怎麼能得到多行全 文本?
我怎樣才能在MKAnnotation標題獲得多行地址?
例如:MyAnnotation標題問題
MyAnnotation *ann = [[MyAnnotation alloc] init];
ann.title = @"abcdefjkskfjhsjkdhfsjdhfjkshdkfjskjfkjshdf ";
MyAnnotation是設置標題我NSObject類。
但泡沫只顯示一個線和另一條字幕,這樣我怎麼能得到多行全 文本?
我讀了是不容易的。您必須自定義標註泡泡。這個答案不是一個真正的解決方案,而是一個提示,如果它是值得的,它可以被做出。
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)