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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:29:55+00:00 2026-05-26T00:29:55+00:00

Does UIImageView requires memory when it is hidden? Same question for alpha=0.0 I work

  • 0

Does UIImageView requires memory when it is hidden?
Same question for alpha=0.0

I work a lot with hidden images, and I wonder if those still consume memory.

More specifically I would like to know that for tableview.

Thanks

  • 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-26T00:29:56+00:00Added an answer on May 26, 2026 at 12:29 am

    Of course if it has an image loaded into the view, it does, because UIImageView is simply a UIView that has a UIImage @property with the retain attribute so it retains the image.

    The fact that the view is visible or not does not change anything of course, and hopefully because otherwise iOS couldn’t load the UIImage again if you set the UIImageView visible again (once the image property is affected to the UIImageView, the UIImageView can’t know the source of the image, was it loaded from a file, an URL, generated programatically, …?), and even if it did know it would be a pain to reload it (could take some time to load and decode)

    If you don’t use an UIImageView‘s image, at least set its image property to nil to hide it (and reload/reaffect the image again yourself if you need to redisplay it, but if it is used in a UITableView because of the recycling/reuse mechanism of the UITableViewCells it will probably never be the same image to set anyway)

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

Sidebar

Related Questions

I am trying to set image to UIImageView programmatically but it does't work. I
Does anyone know how to get IntelliSense to work reliably when working in C/C++
How does one get the 4 coordinates for a UIImageView? I know the CGRect
I currently have a UIImageView which I can move/drag around the view. How does
Why does this code not work? preview[currentPreview].frame = CGRectMake(0, 320, 480, 320); preview[currentPreview].image =
Does anybody know how to change the brightness of a UIImageView in objective-C? Also,
I have a UIImageView that I'm having problems adding a sepia effect to. Does
Does a class name, say UIImage+Something or UIImageView+Somethingelse , mean that it acts like
I am animating images with UIImageView: imageView.animationImages = [NSArray arrayWithArray:imgNameArr]; imageView.animationDuration = 2; imageView.animationRepeatCount
Does Google force employees who have offers from Facebook to leave immediately?

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.