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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:38:23+00:00 2026-05-13T16:38:23+00:00

I am a relatively new iPhone app developer so my knowledge is a little

  • 0

I am a relatively new iPhone app developer so my knowledge is a little sketchy, so please forgive me if this is a bit of a trivial question.

I have a navigation app which drills between table views by calling pushViewController on the navigationController object

I have one particular section which pushes new view controllers sequentially as the user goes through the interface. The view controllers are all subclassed from UIViewController.

It all works fine until it gets to the end, where the idea is the user presses a “Finish” button and is returned to the root view controller (main menu).

So on the button press I call:

[[self navigationController] popToRootViewControllerAnimated:YES];

And it crashes.

I am a bit worried this could be a big problem as this definitly worked at some point but it is now always failing.

Can anyone give any ideas/advice?

  • 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-13T16:38:24+00:00Added an answer on May 13, 2026 at 4:38 pm

    Some suggestions:

    • Before calling popToRootViewControllerAnimated: confirm that the RootViewController does actually exist. If it died somewhere along the line, calling the method will cause a crash.
    • Check the – viewWillDisappear: and – viewDidDisappear: methods of your last view to make sure you’re not doing something dangerous there.
    • Not sure if popping a view causes it to always deallocate but check the dealloc method of the views and their controllers to make sure your not over-releasing something.
    • One mistake I’ve seen a lot is releasing objects in the data model from controllers. When another controller (in this case the RootViewController) tries to access the data model the app crashes.

    It sound’s like you need how to use the Xcode debugger. Type in debugger in Xcode help to get pointers.

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

Sidebar

Related Questions

I am relatively new to iPhone programming, and I have a considerably complex app
I'm implementing a new iPhone app and am relatively new to Cocoa development overall.
I am relatively new to Objective-C / iPhone programming, and have only created single
Im relatively new to the Android world but I have a quick question. I
I'm relatively new to iPhone programming but have read my way through a hefty
I'm relatively new to iPhone Development, so this may be my fault, but it
I am relatively new to IPhone coding, although I have reached the point of
I'm relatively new to objective-c...I'm using the iphone 3.0 SDK I have a UIView,
I have some relatively complex sqlite queries running in my iPhone app, and some
I am a relatively new iPhone/objective-c programmer and I have an issue that makes

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.