tags:

views:

370

answers:

2

This seems pretty simple and gives a great graphics effect, the animated blue dot with the pulsating circle. This code worked perfect for me. Then just STOPPED. Strange! Can't figure it out. Can't remember changing one line. Just no longer pulses ... even reinstalling app on phone. Hmmmmm, does it stop if it finds a perfect location? Not sure . . . thanks!

if ([myTitle isEqualToString:@"Current Location"]){

     pin.animatesDrop = YES;
     return nil;
    } else {
     [pin setPinColor:MKPinAnnotationColorPurple];
     pin.leftCalloutAccessoryView = button;
}
A: 

Have you tried removing the following line:

return nil; 

Return nil means that no annotationView is returned, show there is nothing to show.

rckoenes
A: 

The blue dot will no longer pulse once the location is locked. The pulsing is a way of showing that it is an approximate location.

selliott