2013-02-25 1 views
0
for (MyAnnotation *a in dealerMapView.annotations) { 
    // Your current position (if shown) is an annotation as well. Thus check for the right class! 
    if ([a isKindOfClass:[MyAnnotation class]]) { 
     // insert some smart if statement here, if you have multiple annotations! 
     [[dealerMapView viewForAnnotation:a] setSelected:YES animated:YES]; 
    } 
} 

위의 코드를 사용했지만 핀에 정보가 표시되지 않았습니다.주석을 클릭하지 않고도 주석에 정보를 표시하려면 어떻게해야합니까?

답변

0
[self.dealerMapView selectAnnotation:myAnnotation2 animated:YES]; 

이 문장을 사용하여 이제 주석에 대한 정보를 표시했습니다.

관련 문제