Check whether zoom level changed

后端 未结 7 1889
余生分开走
余生分开走 2020-12-23 12:05

I\'m using MapKit on iPhone. How can I know when the user changes the zoom level (zoom in\\out the map)?

I\'ve tried to use mapView:(MKMapView *)mapView regi

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-23 12:45

    You could save a latitude delta, then when regionDidChangeAnimated: is called, check to see if the new latitude delta is different. I think the latitude delta stays constant as long as the map isn't zoomed.

提交回复
热议问题