2011-02-25 5 views
3

따뜻한 인사, 내가지도를 도청 할 때 아이폰 OS 에 주석을 표시하기 위해 아래의 코드를 사용하고MKAnnotation

을 사용자 정의합니다.

MKPointAnnotation *aAnnotationPoint = [[MKPointAnnotation alloc] init]; 

aAnnotationPoint.title = @"Virginia"; 
aAnnotationPoint.subtitle = @"This is a test code .this is a test code. This is a test codeThis is a test code .this is a test code. This is a test code"; 

// Add the annotationPoint to the map 
[myMapView addAnnotation:aAnnotationPoint]; 

문제는 주석이 완전히 텍스트를 표시되지 않는 것입니다 - 그것은 ...로를 차단. 나는 운이 인터넷을 통해 샘플의 종류하지만 검색 한

enter image description here

: 다음은 결과입니다. 이것을 어떻게 할 수 있습니까?

답변

4

기본적으로 callout에서 MKPointAnnotation의 크기는 이미지에서 보여준 것과 동일합니다. 매우 긴 부제 때문에 자막 텍스트가 완전히 표시되지 않습니다.

이 문제에 대한 해결책은 custom callouts from here입니다. 또한 wonderful tutorial에서 UIBarButton 및 UIImageView가 pinView에 제공되는 데 도움을 받으십시오.

희망이 있습니다. 행운을 빕니다!

+0

답장을 보내 주셔서 감사합니다. 아래 링크를 사용하면 http://blog.asolutions.com/2010/09/building-custom-map-annotation-callouts-part-1/로 변경해야합니다. 멀티 라인 텍스트를 표시 하시겠습니까? 내 scenerio이 작동하도록 보장 jus ... – user198725878

관련 문제