I try use compass in my ios app. And I have one problem with it. If i implement
locationManagerShouldDisplayHeadingCalibration
method and return YES
in it, then calibration display is showing always. But I should make it like apple maps. I.e. calibration display should be showed sometimes. When compass should be calibration.
|
|||||||||||||||||
|
OK I could not leave a comment so I thought I should leave a reply as Shadow_x99's reply was useful to me. I am using this improved version of Shadow_x99's response.
Also wanted to say what Shadow_x99 says almost implements the API docs here which states:
|
|||
|
I use the following code:
|
|||
|
manager.heading is CLHeading. that is why manager.heading > 5 will give a warning. self.currentHeading.headingAccuracy > 5 is the true one. |
|||
|