如何防止iphone在Objective C中出现校准指南针?

时间:2014-12-01 15:41:54

标签: ios objective-c iphone

当我将MKMapView的userTrackingMode设置为MKUserTrackingModeFollowWithHeading时,我的应用程序一次又一次地向我显示指南针校准。如何防止这种情况? 这是我的locationManager的初始化。

self.locationManager = [[CLLocationManager alloc] init];
self.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
self.locationManager.distanceFilter = 5;
self.locationManager.delegate = self;
self.locationType = LocationManagerTypeNone;

1 个答案:

答案 0 :(得分:0)