2011-08-31 2 views
0
for(int i=0;i<[btv_view.aray_cord count];i++) 
{ 
    //dm.title=[appDelegate.lB objectAtIndex:i ]; 

    [mapView addAnnotation:[btv_view.aray_cord objectAtIndex:i]]; 

} 

지도에 다중 핀 주석을 추가하는 데 위의 코드를 사용하고 있습니다. 이제 각 핀 주석에 tiltle을 추가하겠습니다. 어떻게 그럴 수 있죠?핀에 제목을 추가하는 방법은 무엇입니까?

답변

0

이 시도 :

for (MKPlacemark* annotations in mapView.annotations) { 
    annotations.title = @"your title"; 
} 
+0

를 내가 오류를 얻고있다 "속성을 읽기 전용으로 할당을" –

관련 문제