Displays an arrow that is in a specific place

Does anyone know how to place an arrow pointing to a specific annotation, depending on my current title. For instance; I want the arrow to be vertical when the current title matches the coordinates of the annotation. I offer $ 50 to someone who does this for me through paypal. Look at the image below;

alt text

.

+3
source share
3 answers

, , , iphone , , , .

0

, , , , ?

0

- :

- (void) updateHeading
{
    [locationManager startUpdatingHeading];     
    locationManager.headingFilter = kCLHeadingFilterNone;
}

- (void) locationManager:(CLLocationManager*)manager  didUpdateHeading:(CLHeading*)newHeading
{
    heading = newHeading.trueHeading;
    heading += -90.0 * roll;
    NSLog(@"Your Heading: %@", heading);

    NSLog(@"magneticHeading: %f", newHeading.magneticHeading);
    NSLog(@"trueHeading: %f", newHeading.trueHeading);
}

. magneticHeading truHeading CLHeading

-1

Source: https://habr.com/ru/post/1786976/


All Articles