开发者

How to display iPhone MapView ZoomIn by default?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜