开发者

zoom out in MKMapView

When开发者_如何学Go you double tap on MKMapView : zoom in.

But how to zoom out??


There's always using two fingers to zoom in and out. On the emulator you need to hold down an option key to get 'two fingers' appear on the emulated screen (I think it's the Alt key but I use a PC keyboard on my mac so may differ on a real mac keyboard)

As for doing it procedurally you need to set the region on the mapkit. via the setRegion method of your MKMapKit object.

Make sure you're within bounds though as it will cause a crash if not. (i.e. long -180

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜