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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:50:55+00:00 2026-06-11T17:50:55+00:00

In developing my current app, I ran into some issues that I eventually traced

  • 0

In developing my current app, I ran into some issues that I eventually traced back to a low memory warning. Part of the low memory is coming from my (liberal) use of UIWebViews, which are apparently consuming a lot of memory.

I didn’t think this would be an issue, since a view that isn’t currently visible should just vanish when the low memory warning is thrown, unfortunately it turns out that anything connected to the UITabBarController remains in the heirarchy and doesn’t release. By manually releasing (and then recreating in viewWillAppear) the views, I make things work decently. But it doesn’t completely solve the memory warning issue.

So what I need to do is manually release the view — and the large amount of memory that winds up connected to it — and then restore it. Since I don’t want to build it programmatically (that’s what IB is for!), I need to somehow reload it from storyboard.

Or, alternatively, I’m being an idiot and there’s something really obvious to make my life easy.

  • 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-11T17:50:56+00:00Added an answer on June 11, 2026 at 5:50 pm

    After more experimentation, it turns out that on the one hand, my understanding of view life cycles was slightly flawed, and on the other my experiments were tainted by having accidentally let zombie objects on.

    Views will, in fact, unload their contents in a low memory condition and reload them later — that’s part of what ‘viewDidLoad’ and ‘viewDidUnload’ are designed for! Putting init code in them, as some tutorials I read did, was a major error. That init code should go in the designated initializer — even if that can be annoying to figure out which initializer is designated.

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

Sidebar

Related Questions

I'm developing an app, that connects to a ranking server, to get the current
I'm developing an application that tracks the user's current position and stores it into
I'm current developing web-app that allows a user to associate their account with their
I am developing an iOS app. How can I know the current section that
I'm developing an iPhone web app following some of the suggestions that can be
I m current developing an app for google plus. I want to fetch the
I'm developing an android app, I've requirement to show the user current location and
I'm developing on the current 3.1 SDK, but I'd like my app to support
Am developing an app, which first gets the current date from DatePicker using Calendar.getInstance(),
What's the easiest way to clone current request's HttpContext instance? I'm developing an app

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.