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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:00:55+00:00 2026-05-19T03:00:55+00:00

I have an app that navigates thru different views using the navigation controller. This

  • 0

I have an app that navigates thru different views using the navigation controller. This is what I’m doing:

MapViewController *aMap = [[MapViewController alloc] initWithNibName:@"MapView" 
                                                              bundle:nil ];
[self.navigationController pushViewController:aMap 
                                     animated:YES];
[aMap release];

At an user action, I want to go back to the first view. This is what I did:

-(void)alertView:(UIAlertView *)alertView 
 didDismissWithButtonIndex:(NSInteger)buttonIndex
{
    [self.navigationController popToRootViewControllerAnimated:NO];
}

When I press a button that call the bellow method, my app goes as expected to the first view. But the problem arises when I press the “Home button” and try to reopen the app. Then, the app crash giving the following error:

2010-12-23 14:33:18.504 test[4549:307] *** -[MapViewController respondsToSelector:]: message sent to deallocated instance 0x5c26320

I understand that I sending a message to an instance of the object that does not exist, but I don’t find where is this happening

Do you have any recommendation?

  • 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-05-19T03:00:56+00:00Added an answer on May 19, 2026 at 3:00 am

    Something is trying to send messages to the MapViewController after it’s been deallocated.

    Are they any objects that reference it – is it the delegate for any of its subviews, or does it receive any notifications, or anything like that?

    If so, you need to make sure you unsubscribe from any notifications in the controller’s dealloc method, and set any delegate parameters (on other objects) that reference the controller to nil.

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

Sidebar

Related Questions

I have a navigation app that has many screens the user navigates to. A
I have a app that I'm deploying to a development server using Capistrano. I'd
I have an App that will send authenticated emails using System.Net.Mail and System.Net.NetworkCredential my
I have 3 different Activities that user navigates between in no particular order. My
I have a number of viewControllers (iPad) that manage different views presenting various screens
I have an app that needs to open a new window (in the same
I have an app that executes commands on a Linux server via SSH just
I have an app that is failing on the install. The vendor says I
I have an app that needs to handle very large strings between a SQL
I have an app that I'm writing a little wizard for. It automated a

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.