I am new to iOS development. My goal is to show the compass on the screen. I have the latitude and longitude of a particular place. I got my current latitude and longitude using CLLocation.
I calculated the distance between two points using the API, but now I want to know the correct direction of my N / S / E / W phone and something like the right north pole ... I'm not sure.
Is there some kind of concept for the iPhone North Pole and the actual North Pole?
I want to show a line indicating a specific longitude and latitude, even if my phone rotates or moves; the line points only to this point.
Please help me, where should I go next? Any directions or links / tet will be great.
source
share