2009-10-12 3 views
1

어떻게 MKAnnotation 제목에 여러 줄 주소를 가져올 수 있습니까? 예를 들어
:MyAnnotation 제목 문제

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

MyAnnotation는 제목을 설정 내 NSObject의 클래스입니다.

그러나 거품은 한 줄과 다른 부제목 만 표시하므로 전체 줄을 개 줄로 어떻게 얻을 수 있습니까?

답변

0

내가 읽은 것은 쉽지 않습니다. 설명 선 거품을 사용자 정의해야합니다. 이 대답은 진정한 해결책은 아니지만 그것이 가치가 있다면 어떻게 만들 수 있을지 힌트를줍니다.

How to customize the callout bubble for MKAnnotationView?

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

:이 주제에

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

더 451,515,

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