如何在pin上添加标题?

时间:2011-08-31 10:51:54

标签: iphone mkmapview mkpinannotationview

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]]; 

}

我使用上面的代码在地图上添加多个图钉注释。现在我想在每个引脚注释上添加斜角。怎么样?

1 个答案:

答案 0 :(得分:0)

试试这个:

for (MKPlacemark* annotations in mapView.annotations) {
    annotations.title = @"your title";
}
相关问题