开发者

How to display iPhone MapView ZoomIn by default?

开发者 https://www.devze.com 2023-03-13 17:54 出处:网络
I am trying to implement UIMapView and I did this task successfully but I want by default ZoomIn mapview at certain ratio how can I implement th开发者_StackOverflowis. Thank you.Use this code

I am trying to implement UIMapView and I did this task successfully but I want by default ZoomIn mapview at certain ratio how can I implement th开发者_StackOverflowis. Thank you.


Use this code

        MKCoordinateSpan span;
        span.latitudeDelta = 0.4; 
        span.longitudeDelta = 0.4;     

Here
latitudeDelta (the vertical distance represented by the region), and
longitudeDelta (the horizontal distance represented by the region).

You can find more details about MKMapview here
BTW it is not UIMapView it is MKMapView...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号