Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8073117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:14:06+00:00 2026-06-05T14:14:06+00:00

I have a MKMapView with lots of annotations. When I tap on an annotation,

  • 0

I have a MKMapView with lots of annotations. When I tap on an annotation, the contact details(ABPersonViewController) of the annotation is pushed. In this class I have an option to delete the contact. As the contact is deleted from the addressbook, at the same time I need to remove the annotation from the mapview too.

As the delete button is tapped, the contact is removed from the addressbook, and the ABPersonViewController class is popped from the navigation stack. Now the user sees the mapview. But it should be without the annotation(contact) which was removed.
How can I do this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T14:14:08+00:00Added an answer on June 5, 2026 at 2:14 pm

    Get the annotations from the mapview using the annotation property. Then iterate through the annotation list to get the particular annotation then use the

    - (void)removeAnnotation:(id < MKAnnotation >)annotation
    

    method to remove the annotation. I hope it will take care of your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MKMapView (also a UIPopoverControllerDelegate) with Annotations. This MapView has, in the
I have a MKMapView that has a pin than when pressed shows the annotation's
I have a GPSTestViewController class that has a MKMapView with added MKAnnotations (stored in
I have two views. The first is a MKMapView with some annotations. Clicking a
I have a MKMapView with annotations on it and it works fine. I have
I have a MKMapView in a Contact Us section of my app. At the
I have populated a couple of locations on MKMapView using MKPointAnnotation(s). On tapping annotations
I am using MKMapView and have added a number of annotation pins to the
I have a MKMapView with it's delegate set to my controller (m) class. Code
I have a MKMapView with some custom annotations that don't look that great when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.