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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:54:39+00:00 2026-06-16T02:54:39+00:00

I am using mapView with an callout from a simple annotation. I used the

  • 0

I am using mapView with an callout from a simple annotation. I used the below delegate method

- (void)mapView:(MKMapView *)_mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control {

    lbhProfileMapPoint *mp = (lbhProfileMapPoint *) view.annotation;
    NSLog(@"mp objectID: %@", mp.objectID);
    self.objectId = mp.objectID;
    [[lbhVariables sharedInstance] setMapViewChosenObjectId:self.objectId];

    //[self performSegueWithIdentifier:@"profileSegue" sender:self];
    lbhProfileViewController *pvc = [[lbhProfileViewController alloc] init];
    [pvc setObjectId:self.objectId];
    [self.navigationController pushViewController:pvc animated:NO];
}

It doesn’t go to the viewcontroller but keeps saying

Unbalanced calls to begin/end appearance transitions for <lbhProfileViewController: 0x1f017ec0>.

actually the lbhProfileViewController, It’s connected within my storyboard via other viewcontrollers. But with this accessory callout, I want to manually call it. As you can see I have

//[self performSegueWithIdentifier:@"profileSegue" sender:self];

in the code, but if I use this method instead, it still gives me unbalanced calls.

  • 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-16T02:54:40+00:00Added an answer on June 16, 2026 at 2:54 am

    If you use performSegueWithIdentifier:sender: method you should also use prepareForSegue:sender: method. Your code in prepareForSegue:sender: method will be something like this:

    -(void)prepareForSegue:(UIStoryBoardSegue*) segue sender:(id) sender
    {
         if([segue.identifier isEqualToString:@"profileSegue"]){
             lbhProfileViewController *pvc = [segue destinationViewController];
             [[segue destinationViewController]setObject:sender.objectId];
         }
    }
    

    Also to use this, you will need a segue directly connecting to the lbhProfileViewController from the view controller calling the map delegate method.

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

Sidebar

Related Questions

I have a problem using the -(void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccesoryControlTapped:(UIControl *)control method. I
I have used MKReverseGeocoder from iPhone sdk for my application without using mapview of
I have multiple annotations set up on an MKMapView. Instead of using map annotation
I am using a mapView and am trying to make a callout pop up
Im using MapKit in my application and disaply the user location with [mapview setShowUserLocation:YES];
I'm trying to show a MapView inside a fragment (using the hacked compatibility library).
I'm using the following tutorial http://developer.android.com/resources/tutorials/views/hello-mapview.html in order to create a map view and
I have a mapView with annotationViews and the userLocation blue dot. I am using
How can we draw the routes between two locations in MapView using the iOS
I am using a customised version of the mapview (OSMDroid version). I am using

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.