¡@

Home 

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

iphone Programming Glossary: needchange

MKMapRect zooms too much

http://stackoverflow.com/questions/8465149/mkmaprect-zooms-too-much

for loop... double minMapHeight 10 choose some value that fit your needs double minMapWidth 10 the same as above BOOL needChange NO double x MKMapRectGetMinX zoomRect double y MKMapRectGetMinY zoomRect double w MKMapRectGetWidth zoomRect double h MKMapRectGetHeight.. zoomRect here was an error if MKMapRectGetHeight zoomRect minMapHeight x minMapWidth 2 w minMapWidth 2 needChange YES if MKMapRectGetWidth zoomRect minMapWidth y minMapHeight 2 h minMapHeight 2 needChange YES if needChange zoomRect MKMapRectMake.. 2 w minMapWidth 2 needChange YES if MKMapRectGetWidth zoomRect minMapWidth y minMapHeight 2 h minMapHeight 2 needChange YES if needChange zoomRect MKMapRectMake x y w h mapView setVisibleMapRect zoomRect animated YES EDITED double minMapHeight..