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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:41:43+00:00 2026-05-29T19:41:43+00:00

I’ve almost finished my iPhone app and I’m making test using XCode 4 and

  • 0

I’ve almost finished my iPhone app and I’m making test using XCode 4 and IOS Simulator.
My App has a series of view opened modal:

View 1 –> modal –> View 2 –> modal –> View 3 –> modal –> View 4

View 2 is the delegate of View 3 and View 3 is delegate of View 4.

If View4 is visible and I try to “simulate Memory Warning” then I’m able to go back to View3, but View3 is not able to call its delegate ([self.delegate NotifySave:self]).

If I place a breakpoint before calling the delegate, I see “0x0” instead of “0xsomething”.
Even if I “quit” the application with the “home” button, the problem (of course) is still there when I run the app again.

The questions are:

  • Did someone else experienced the same problem?
  • Can this problem exists only with the simulator? (I’m not able to reproduce the warning on real iPhone)
  • Did someone have any suggestions?
  • Can I prevent View2 from being released? (I think this is the cause of the problem)

Thank everybody for the help.

  • 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-29T19:41:44+00:00Added an answer on May 29, 2026 at 7:41 pm

    If you are storing the delegate via obj-c 2.0 property, try changing your model to rely on a retain instead of assign. This will ensure that the delegate is not released out from under you in these situations. If you go with this route, it is important to ensure that you do not have a “retain circle” where two objects retain each other and never get released.

    @property (nonatomic, retain) id delegate;
    

    For backgrounding, you should develop a system that stores the info you need to restore your application state, then clear all these items out of memory on quit (in - (void)applicationDidEnterBackground:(UIApplication *)application) and restore them on relaunch. This will prevent your application from being “purged” as often, increasing the likelihood that you’ll be able to restore on relaunch (in - (void)applicationWillEnterForeground:(UIApplication *)application), rather than your app being relaunched from square 1 each time.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I am using Paperclip to handle profile photo uploads in my app. They upload
I'm making a simple page using Google Maps API 3. My first. One marker
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace

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.