【问题标题】:MapKit Annotation Point titleMapKit 注释点标题
【发布时间】:2012-05-25 10:55:17
【问题描述】:

点击注解点时显示的弹出框是内置的还是开发人员创建的视图?

    MKPointAnnotation *annotationPoint = [[MKPointAnnotation alloc] init];
    annotationPoint.coordinate = annotationCoord;
    annotationPoint.subtitle = user.purchasedLocation;
    [mapView addAnnotation:annotationPoint];

我想在我的地图视图中创建一个如上图所示的弹出框。 当我将上述代码添加到我的应用程序时,它只显示街道地址。 在 MapKit 框架中是否有内置方法来显示这种弹出框,如上图所示的用户图像和箭头图像?

谢谢。

【问题讨论】:

    标签: iphone google-maps mapkit


    【解决方案1】:

    查看此 stackoverflow 帖子 Annotation with Image 这将帮助您在注释中添加按钮和图像。

    还有这个链接Adding images to map Annotation

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-08-17
    • 1970-01-01
    • 1970-01-01
    • 2011-11-05
    • 1970-01-01
    • 2021-05-03
    • 1970-01-01
    相关资源
    最近更新 更多