2

我有一段时间在寻找某种方法来找到结果如下所示的方法: http://i.stack.imgur.com/f78oz.png

-但是我输入了方法,我想知道我是否将代码放在正确的位置,如果你能帮助我,谢谢

- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation
{

    MKPinAnnotationView *annView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"SimpleTableIdentifier"];

    UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"arrow_right.png"]];

    annView.animatesDrop = TRUE;
    annView.canShowCallout = YES;
    annView.calloutOffset = CGPointMake(-5, 5);
    [annView addSubview:imageView];
    return annView;

}
4

0 回答 0