Search code examples
iphonemkmapviewmkannotationviewmapkit

Can we create flashing red circle around user location in mapview in iphone?


Can we create flashing red circle around user location instead of blue (default) ? And also make user location pinpoint with red bubble.


Solution

    1. In the viewForAnnotation method, check for the user location annotation.
    2. Create a uiimageview and set the property animationImages to the different images that conform the red flashing circle, and call startAnimating.
    3. Add the uiimageview to a mkannotationview.
    4. Return the mkannotationview for that case.