ZoomIn for Mapview

时间:2012-02-23 11:27:44

标签: ios4 mkmapviewdelegate

Mapview应该以特定引脚的zoomin模式启动。我们怎么能以编程方式做到这一点。任何代表方法都是为此而存在的。

1 个答案:

答案 0 :(得分:0)

MKMapView * mvMap;

MKCoordinateRegion region;
region.center.longitude = 0;
region.center.latitude = 0;
region.span.latitudeDelta = 5;  // this is zoom level
region.span.longitudeDelta = 5;

[mvMap setRegion:region animated:NO];
[mvMap regionThatFits:region];