¡@

Home 

2014/10/15 ¤U¤È 10:11:17

iphone Programming Glossary: manuallychangingmaprect

Restrict MKMapView scrolling

http://stackoverflow.com/questions/4119117/restrict-mkmapview-scrolling

is initially set to a region where the overlay is visible. add two ivars to the .h... MKMapRect lastGoodMapRect BOOL manuallyChangingMapRect in the .m... void mapView MKMapView mapView regionWillChangeAnimated BOOL animated if manuallyChangingMapRect return lastGoodMapRect.. BOOL manuallyChangingMapRect in the .m... void mapView MKMapView mapView regionWillChangeAnimated BOOL animated if manuallyChangingMapRect return lastGoodMapRect mapView.visibleMapRect void mapView MKMapView mapView regionDidChangeAnimated BOOL animated if manuallyChangingMapRect.. return lastGoodMapRect mapView.visibleMapRect void mapView MKMapView mapView regionDidChangeAnimated BOOL animated if manuallyChangingMapRect prevents possible infinite recursion when we call setVisibleMapRect below return theOverlay below is a reference to your..