Prevent scrolling in a MKMapView, also when zooming

前端 未结 6 486
借酒劲吻你
借酒劲吻你 2020-12-03 03:09

The scrollEnabled seems to be breakable once the user starts pinching in a MKMapView.

You still can\'t scroll with one finger, but if y

6条回答
  •  执念已碎
    2020-12-03 03:51

    Try implementing –mapView:regionWillChangeAnimated: or –mapView:regionDidChangeAnimated: in your map view's delegate so that the map is always centered on your preferred location.

提交回复
热议问题