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