0
我需要後,每次20秒我怎麼能做到這一點MapView的註解視圖
for (int i = 0; i < [_shadowArray count]; i++)
{
Shadows* shadowObj1;
shadowObj1 = [_shadowArray objectAtIndex:i];
CLLocationCoordinate2D location1;
location1.latitude = [shadowObj1.position_x floatValue];
location1.longitude = [shadowObj1.position_y floatValue];
annotaionObj = [[AnnotationDelegate alloc] initWithCoordinate:location1 name:@"" sub:@"Catch me! "];
[_annotationArray addObject:annotaionObj];
[_mapView addAnnotation:annotaionObj];
}
您可以提供一些代碼來初始化您的註釋嗎? – 2011-03-25 13:26:48
for(int i = 0; i <[_shadowArray count]; i ++) \t { \t \t Shadows * shadowObj1; \t \t \t shadowObj1 = [_shadowArray objectAtIndex:i]; \t \t CLLocationCoordinate2D location1; \t \t \t \t location1.latitude = [shadowObj1.position_x floatValue]; \t location1.longitude = [shadowObj1.position_y floatValue]; \t \t \t \t \t annotaionObj = [[AnnotationDelegate頁頭] initWithCoordinate:LOCATION1名:@ 「」 子:@ 「!趕上我」]; \t \t [_annotationArray addObject:annotaionObj]; \t \t [_mapView addAnnotation:annotaionObj]; \t \t \t } – 2011-03-25 13:27:33
可以我改變註釋的VIW當用戶位置變化 – 2011-03-25 13:36:46