ios6 - MapView crashing once adding more pins to mapview -
how remove zoom mapview if user zoom on button click.
for (id annotation in annotations) {
mkmappoint annotationpoint = mkmappointforcoordinate(annotation.coordinate); mkmaprect zoomrect = mkmaprectmake(annotationpoint.x, annotationpoint.y, 0.0, 0.0); [m_mapview setvisiblemaprect:zoomrect animated:yes]; }
mkmaprectmake
cant have 0,0 in rect's width height. once u can make value crashing stop
Comments
Post a Comment