objective c - Open MKMapView to the users current location without starting at US zoom level -
i using mkmap view, when map first loads show entire united states. zooms current location.
is there way make map load specific zoom level?
i start cllocationmanager , implemented following method.
-(void)locationmanager:(cllocationmanager *)manager didupdatelocations:(nsarray *)locations
i use setregion
no matter map starts @ level zooms region set setregion
?
your problem seems setregion
doesn't work.
i found post: mkmapview : setregion doesn't work !
it seems similar problem. if setting mkmapview's region early, in viewdidload
?, it's possible mapview hasn't acquired it's final frame yet. try moving setregion
viewdidappear
, see if makes difference.
cheers!
Comments
Post a Comment