当我将MKMapView的userTrackingMode设置为MKUserTrackingModeFollowWithHeading时,我的应用程序一次又一次地向我显示指南针校准。如何防止这种情况? 这是我的locationManager的初始化。
self.locationManager = [[CLLocationManager alloc] init];
self.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
self.locationManager.distanceFilter = 5;
self.locationManager.delegate = self;
self.locationType = LocationManagerTypeNone;
答案 0 :(得分:0)
CLLocationManagerDelegate有一种禁用校准显示的方法,
但我不确定MKMapView是否有一个你无法改变的...