【问题标题】:Getting the bounds of annotation having custom view获取具有自定义视图的注释边界
【发布时间】:2012-11-02 21:22:19
【问题描述】:

我的地图上有许多图钉,我想知道它们视图左上角和右下角的坐标,以便对它们执行特定操作。

这是我需要插入获取特定注释视图边界的代码的代码:

- (void)mapView:(MapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view {
    if ([view.annotation isKindOfClass:[PlaceAnnotation class]]) {
        PlaceAnnotationView *placeAnnotationView = (PlaceAnnotationView *)view;
        // How to get the bounds of placeAnnotationView here?
    }
}

相关问题:How to adjust region to fit custom annotation callout that have just appeared?

【问题讨论】:

    标签: ios annotations mapkit mkannotationview


    【解决方案1】:

    我刚刚发布了这个问题的来源问题的答案。答案可能在那里:How to adjust region to fit custom annotation callout that have just appeared?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多