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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:17:01+00:00 2026-05-27T03:17:01+00:00

I have a viewController called FirstViewController. In an IBAction i call another ViewController called

  • 0

I have a viewController called “FirstViewController”. In an IBAction i call another ViewController called “thePageFlipViewController” and push it in sight via

[self presentModalViewController:thePageFlipViewController animated:YES];

after some time the user closes thePageFlipViewController with a button where the following code is executed via a delegate in FirstViewController:

[self dismissModalViewControllerAnimated:YES];
[thePageFlipViewController release];

And here is my problem:

-viewDidLoadin FirstViewController get’s sometimes called after dismissing thePageFlipController. I don’t understand why, because firstViewController should live in background. Is it dependent how long the modal view is displayed? is it possible that ARC does release something?

My problem is, that i initialise a lot of objects in viewDidLoad and the app crashes if viewDidLoad gets called again. I define some Routes for RESTKit there and RestKit complains that the routes are already set up and crash the app.

Any Help is appreciated.

  • 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-27T03:17:01+00:00Added an answer on May 27, 2026 at 3:17 am

    When a view is not actually displayed it can be unloaded to free up memory. You would get a call to viewDidUnload: when that happens so you can release any objects you are holding strong references to. Then next time the view is needed, viewDidLoad: will get called again when the view is reloaded, there you have to recreate the objects you released in viewDidUnload:.

    See the Memory Management section of the UIViewController class reference.

    Also this answer has a good explanation already.

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

Sidebar

Related Questions

Let's say I have an abstract class called ViewController, and another abstract class called
I have a custom viewController called SourceListViewController, and I'm adding it into a UINavigationController,
I have a ViewController class called GamePlay. In GamePlay there is a nested class
I have just noticed that my ViewController does not call init (See below) when
I have declared this ivar in my ViewController.h #import <UIKit/UIKit.h> @interface FirstViewController : UIViewController
I have a balloonGameViewController.h and another class I made called balloon.h I want to
I have my iPad ViewController.xib with a button called about us. How to link
I have a ViewController called CortesViewController which has a MKMapView Called mymap. I have
Is the initWithNibName always called whenever programmatically or IB? Example: I have two viewController,
. Hi, everyone. I have a custom ViewController(1) and presented another ViewController(2) modally. While

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.