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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T18:19:47+00:00 2026-05-29T18:19:47+00:00

I have several viewControllers controlled by a navigation controller. For example, viewController A and

  • 0

I have several viewControllers controlled by a navigation controller.

For example, viewController A and viewController B can both push viewController C into the navigation stack and ask C to do some saving (actually means the same to C).

in the saving method of C, the last line of code is

[self.navigationController popViewControllerAnimated:YES];

But problem is,

If I push to C from A, after I save something and pop back to A, things goes well.

But if I push C to from B, after I do the same thing and pop back to B, app crashes,

with my debugging, I found that app crashed not in C’s code,

but after B’s viewWillAppear method, here I mean after, B correctly runs all of the codes in viewWillAppear,

but then crashes somewhere I don’t know how to trace to.

and the Error is very strange to me:

2012-02-13 00:29:30.975 EasyWallet[43116:707] *** Terminating app due to uncaught exception     
'NSInvalidArgumentException', reason: '*** -[__NSCFConstantString stringByAppendingString:]: nil argument'
*** First throw call stack:
(0x344268bf 0x346761e5 0x344267b9 0x344267db 0x35d72121 0x2ce7b 0x2ba75 0x3782f9cb 0x3782eaa9    
0x3782e233 0x377d2d4b 0x3438522b 0x34f16381 0x34f15f99 0x34f1a11b 0x34f19e57 0x34f11d85    
0x343fab4b 0x343f8d87 0x343f90e1 0x3437c4dd 0x3437c3a5 0x30c00fcd 0x377fd743 0x2179 0x2138)
terminate called throwing an exception(gdb) 

I just don’t know how to fix it.

  • 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-29T18:19:48+00:00Added an answer on May 29, 2026 at 6:19 pm

    While dealing with number of viewControllers and views, it happens that frequent crashes occurs. I also had same problem when not using ARC. At that time i found the best way out is using following link to get into exact crash. The only thing is you need to carefully analyzed the result at console and should judge it better way…

    http://www.cocoadev.com/DebuggingAutorelease.html

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

Sidebar

Related Questions

I have an App with a Navigation Controller, several sub Controllers. With XCode Debug
I have a viewcontroller, into this I add a several subviews to his view,
I have several log files of events (one event per line). The logs can
In my app I have a xib that has several viewcontrollers and xibs (with
I have several buttons positioned on my ViewController within the area covered by the
I have several types os root view controller that I want to instantiate one
I've designed and build game based on UINavigationController. I have several ViewControllers like on
I have a questionnaire viewcontroller class. This instantiates several questionviewcontrollers (each questionviewcontroller has an
I have a navigation based application using Core Data and several levels of drill-down
I have several view controllers, which maintains only landscape mode and one view controller

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.