2013-02-25 37 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]; 

我用這個語句,現在它顯示註釋信息。

相關問題