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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:28:16+00:00 2026-06-17T19:28:16+00:00

I implemented a map view in my app. I implemented a didselect annotation method.

  • 0

I implemented a map view in my app.

I implemented a didselect annotation method.

In this method,i open a popover. It works fine. But when the popover is dismiss & try to click on annotation again, then method is not called more.

if i clicked other annotation except previously select annotation then method will called.

My code is follow:

- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)aView {



    ReadingDatabaseAppDelegate *appDelegate = (ReadingDatabaseAppDelegate *)[[UIApplication sharedApplication] delegate];

    if([self isPad])
    {
        detailsView *popUp=[[detailsView alloc] initWithNibName:@"detailsView_ipad" bundle:nil];


        popView = [[UIPopoverController alloc]initWithContentViewController:popUp];

        popView.delegate =self;

        [popView setPopoverContentSize:CGSizeMake(400, 400)];




        AnnotationImageView *myLocationImage = (AnnotationImageView *)aView;
        popUp.locationID = myLocationImage.locationID;

        NSLog(@"%d",popUp.locationID);

        popUp.list=listdata;
        detView.fromMapView = TRUE;

        if (appDelegate.preferenceRow == 1) {
            detView.title = @"ATM Details";
            popUp.isBranch = 0;
        }
        else {
            detView.title = @"Branch Details";
            popUp.isBranch = 1;
        }




        CGPoint annotationPoint = [mapView convertCoordinate:aView.annotation.coordinate toPointToView:mapView];
        float boxDY=annotationPoint.y;
        float boxDX=annotationPoint.x;
        CGRect box = CGRectMake(boxDX,boxDY,5,5);
        UILabel *displayLabel = [[UILabel alloc] initWithFrame:box];


        [popView presentPopoverFromRect:displayLabel.frame inView:mapView permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
        [displayLabel release];



    }

}

** How can i solve 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-17T19:28:17+00:00Added an answer on June 17, 2026 at 7:28 pm

    When you dismiss your popover, deselect the annotation using -deselectAnnotation:animated:.

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

Sidebar

Related Questions

I have implemented Google Map view in my app with a number of custom
I have create Map view in my application, every thing works fine except the
I have implemented a GoogleMapsV3 map in a twitterBootstrap basic responsive design site. But
I have this following function implemented in my app There are no errors at
In my app, I implemented Cllocation manager to use current user location & it
I implemented the app that displays the map. and it shows the particular location
I have implemented an app that shows a map with a lot of pins
i've been trying to create a map-related android app, but i realized that the
Everything was running fine. But after some testing through my app. It crashes and
I'm having this issue with several screens in my app, but I'll explain what

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.