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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:49:45+00:00 2026-05-28T04:49:45+00:00

In its simplest form, my app displays 10 UIImageViews, each containing an image. Even

  • 0

In its simplest form, my app displays 10 UIImageViews, each containing an image. Even with all UIImageViews containing images, my app uses a small enough memory footprint. However, there is a button to clear all the UIImageViews by setting all their images to nil. The problem is, when checking Memory Monitor in Instruments, the memory held by the UIImageViews is NOT going away. This doesn’t appear in the Allocations instrument, confirming the remaining memory footprint is not an object, but instead graphics-based memory. If I resize the images to something smaller or larger, the memory remaining is also smaller or larger, respectively.

Why is the image data sticking around after the UIImageView’s image has been set to nil?

  • 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-28T04:49:45+00:00Added an answer on May 28, 2026 at 4:49 am

    I believe UIKit keeps a cache of images for reuse. UIImageView might be releasing the object, but a copy is kept around for performance reasons.

    These images, though, should be released on receiving a memory warning. If they’re not, there’s two places I’d check:

    1. Make sure the UIImageView is being dealloc’d. Use Allocations Instrument to profile your app and do whatever you need to do in the program to load those images. Then unload the images and do a search for UIImageView. As long as you’re sure your program should have released all of them, if you find any in the search you know something is wrong.
    2. I’d also check any places the image was created, for example: UIImage = [UIImage imageName:@"Foo.jpg"]; Make sure these are also being released. You can use allocations to find UIImage classes, but it’ll be harder to weed out the ones that should/should not be there.
    3. Run the static analyzer: In Xcode 4 it’s under Products -> Analyze. This is a great tool for finding logic errors, over/under release (if you not using ARC) etc.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to reduce this boolean expression to its simplest form. Its given that
Its a simple config app with 4 checkboxes and 5 textboxes, and all values
I have a simple table based queue system. In its simplest form, it consist
In simplest form, following is the design: class Session { Timer t = new
I'd like to convert an existing table into the 1st normal form (simplest normalization
I've got a form that contains contact info. Each has a type, and then
Following code is in simplest form: struct X { operator char () const {
All Form last few days i am finding how to access soap using JS,
As total clojure noob, I am trying to start one small tutorial app, in
Its possible I am just really really thick. However, looking over the SDK for

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.