Setting the zoom level for a MKMapView

后端 未结 15 3061
不知归路
不知归路 2020-12-02 05:46

I have a map which shows correctly, the only thing I want to do now is set the zoom level when it loads. Is there a way to do this?

Thanks

15条回答
  •  星月不相逢
    2020-12-02 06:00

    It's not built in, but I've seen / used this code. This allows you to use this:

    [mapView setCenterCoordinate:myCoord zoomLevel:13 animated:YES];
    

    Note: This is not my code, I did not write it, so therefore can't take credit for it

提交回复
热议问题