制作标注不会出现在MKMapView的某个区域

时间:2017-01-24 09:53:45

标签: ios swift user-interface mkmapview

上一个问题:Detect Callout overlap other UIViews in MKMapView,我想 - 我可以在视图的某个部分显示MKMapView NOT 标注当用户滚动时它会消失,这样它就不会出现在我创建的任何叠加层下面了吗?

修改

我得到了关于让它消失的部分:

func mapView(_ mapView: MKMapView, regionWillChangeAnimated animated: Bool) {
    for annotation in mapView.selectedAnnotations {
        mapView.deselectAnnotation(annotation, animated: true)
    }
}

我仍然没有弄清楚如何防止标注出现在覆盖UIViews

的正下方

0 个答案:

没有答案