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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:07:30+00:00 2026-05-27T00:07:30+00:00

Transparency is evil, on iOS devices even more so than on heavier machines. I

  • 0

Transparency is evil, on iOS devices even more so than on heavier machines. I therefore figured to use view removeFromSuperView first, if not applicable view.hidden=YES and as a last resort view.alpha=0. But I actually don’t know what’s going on behind the scenes. Is there a difference, especially between the latter two?

I have a UIView animateWithDuration:animations:completion: scenario, where if you put hidden=YES in the completion block, it will hide without letting the animation block finish. Therefore I have to resort to alpha=0.

What are the penalties of the one over the other?
Cheers, EP.

  • 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-27T00:07:31+00:00Added an answer on May 27, 2026 at 12:07 am

    I am not sure that a view with alpha 0.0 is still drawn. Check the documentation library:

    Hiding Views

    To hide a view visually, you can either set its hidden property to YES or change its alpha property to 0.0. A hidden view does not receive touch events from the system. However, hidden views do participate in autoresizing and other layout operations associated with the view hierarchy. Thus, hiding a view is often a convenient alternative to removing views from your view hierarchy, especially if you plan to show the views again at some point soon.

    I also have found this answer here http://www.iphonedevsdk.com/forum/iphone-sdk-development/65525-whats-difference-between-alpha-0-hidden-yes.html

    That says:

    I believe that Cocoa Touch treats and alpha less than 0.02 as also being hidden, since below that alpha level it’s invisible, and Apple’s engineers decided that invisible controls should not be clickable.

    Using an alpha value requires that the graphics hardware blend each pixel from the object with everything underneath. It’s compute-intensive. The hidden flag, on the other hand, is a switch. If you turn it on, the OS knows it doesn’t have to draw the object at all.

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

Sidebar

Related Questions

Should I use PNG transparency or CSS transparency? My first instinct is to go
ggplot2: Why Does Semi-Transparency + pdflatex Cause Heavier-Than-Normal PDF Fonts? I've run into a
how to Minimize the transparency vgscene form? i use this code Application.Minimize; and i
How can I change the transparency (alpha) of a view on pre-SDK-11 on Android?
I have a picturebox with some transparency. I found out I can use picturebox.Parent
Even though I've set the transparency of the image to 'True', I am still
I have a png with transparency that I'd like to use for the background
I'm doing basic object transparency using depth sort. As depth i use distance (squared)
Is it possible to achieve an transparency effect where fragments with alpha lower than
The image without transparency is just not visible in other laptops. Also when I

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.