MapScaleView 1.2.2

MapScaleView 1.2.2

xattacker维护。



  • Xattacker

MapScaleView_iOS_API

一个iOS swift Map ScaleView UI View组件

提供与iOS MKMapView的缩放视图
avatar

安装

Cocoapods
MapScaleView can be added to your project using CocoaPods 0.36 or later by adding the following line to your Podfile:

pod 'MapScaleView'

如何使用

let scale_view: UIMapScaleView


scale_view.setup(mapView) // initial 


// implement from MKMapViewDelegate
func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool)
{
   scaleView.setNeedsLayout()
}