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

  • Home
  • SEARCH
  • 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 8059031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:32:23+00:00 2026-06-05T09:32:23+00:00

I have a memory issue with an iPad app I am working on :

  • 0

I have a memory issue with an iPad app I am working on :
it has only 3 views controllers, and a navigation controller.
I swap view controllers from A to B with a push segue , then to C with a push segue, then to A again with a popToRootViewController instruction.

I have implemented didReceiveMemoryWarning on all the view controllers, just to know what happen :
view B is correctly unload from memory but view C seems to duplicate itself and consumes memory !
When I trig a memory warning, I can see severals view C answering…

It don’t look like circular retain because I declared all my parents reference as weak, and because the leak instruments doesn’t detect any leaks, nor retain cycles, but memory increase.
and this cause crash when testing with a real iPad.

what can I do ? where can I look at ?
Is it possible to ask the navigation controllers to release all its previous object but the current on-screen one ?

edit :

in view didload, I have added some observers as below :

 NSNotificationCenter *dnc = [NSNotificationCenter defaultCenter];
[dnc addObserver:self selector:@selector(undoManagerDidUndo:) name:NSUndoManagerDidUndoChangeNotification object:undoManager];
[dnc addObserver:self selector:@selector(undoManagerDidRedo:) name:NSUndoManagerDidRedoChangeNotification object:undoManager];

is it possible that doing this make that dnc keeps a retain reference to self somewhere ?

  • 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-05T09:32:25+00:00Added an answer on June 5, 2026 at 9:32 am

    You don’t have to nil them if you are using ARC. ARC should automatically release them once there is no longer a strong pointer to them. I don’t know of a way to see which one is retaining it. There probably is but I have looked and can’t find a way. You should remove all GestureRecognizers and anything else so that it will dealloc.

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

Sidebar

Related Questions

I have an .net app that seems to have a memory leak issue(s). The
I have a universal app but this issue seems to only relate to the
I have a strange issue . I am currently working on a mail app
I have a memory issue with mongoengine (in python). Let's say I have a
I have problem with my widget related to performance and memory: Issue : My
I have an issue with my program using much more memory than I think
Ignoring unsafe code, .NET cannot have memory leaks. I've read this endlessly from many
Alright, so I'm currently working on a game and ran into a memory issue
I have a memory leak issue in my application which loads a large amount
Hi I have a nasty memory management issue under ARC and cannot figure out

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.