2017-05-05 4 views
0

CLLocationManagerが正常に動作しています。見出しの値が変わったときに気づくことができます。CLLocationManagerを停止する方法iPhoneが少し動いたときの見出し値の変更。

しかし、私は見出しの値が異なっていることがわかりました。

私は

locationManager.headingOrientation = CLDeviceOrientation.landscapeRight 

私も設定されている他のプロパティを設定しています

locationManager.requestWhenInUseAuthorization() 
    orientation = getCLDeviceOrientation(by: UIDevice.current.orientation) 
    locationManager.desiredAccuracy = kCLLocationAccuracyBest 
    locationManager.headingFilter = 0.1 
    locationManager.headingOrientation = CLDeviceOrientation.landscapeRight 
    locationManager.startUpdatingHeading() 
    locationManager.delegate = self 

答えて