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 8758479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:33:34+00:00 2026-06-13T14:33:34+00:00

I have annotations on a mapView, and the callout button on the annotation view

  • 0

I have annotations on a mapView, and the callout button on the annotation view pushes another view called PinViewController onto the stack. I have a button on PinViewController that I want to remove the pin when it is pressed. I am not sure how to do this, can someone help me out?

  • 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-13T14:33:36+00:00Added an answer on June 13, 2026 at 2:33 pm

    When you initialize the PinViewController you could pass it a variable that can later be used to identify the annotation. Maybe they have unique IDs or names. Pass it through and when the button is pressed you tell your previous view controller to remove that annotation. You could have a connection to your previous vc by making it a delegate or a weak reference (to avoid a reference loop). When the previous vc is given the ID it must go through all the annotations until it finds the one that matches the ID, and then tell the map view to remove that annotation. Hope that helps.

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

Sidebar

Related Questions

I have a mapview with several annotations. Every annotation has a leftCalloutAccessoryView which is
I want to add an annotation to a MapView with disclosure button on it
I have a map view with annotations, and these annotations display a callout. When
I have several annotations on a mapview. After selecting one of them (callout enabled)
I have a single annotation on a map view. I can select it programmaticly,
I have an App that displays thousands of Pin annotations on a google map
i'm developing an application for iPad. I have a mapview with several annotations. I
I have a MKMapView (also a UIPopoverControllerDelegate) with Annotations. This MapView has, in the
I have custom annotation pin at app: - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation {
I have A MapView with multiple annotations. I need to put different images to

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.