MapView在8.0之后,用法有了一些新的用法(代理方法),在此之前需要导入 #import <MapKit/MapKit.h> //创建位置服务对象 locationManager = [[CLLocationManager alloc] init]; &n...