【发布时间】:2015-10-14 16:51:09
【问题描述】:
我有一张地图,当我平移或键入一个位置并导航到它时,我希望运行一个简单的打印功能。但是,我已经完成了这项工作,当我第一次加载应用程序时,它会多次调用该打印函数,直到完成放大。有没有办法不计算应用程序加载区域更改的初始值?
【问题讨论】:
-
我试过 func mapViewDidFinishLoadingMap(mapView: MKMapView){ func mapView(mapView: MKMapView, regionDidChangeAnimated animated: Bool) { hobo() }}
-
还有这个 func mapViewDidFinishRenderingMap(mapView: MKMapView, fullyRendered: Bool) { func mapView(mapView: MKMapView, regionDidChangeAnimated animated: Bool) { hobo() }}
标签: ios xcode swift mapkit swift2