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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:22:42+00:00 2026-06-17T10:22:42+00:00

When a view is hidden or alpha=0 does it still cost CPU power or

  • 0

When a view is hidden or alpha=0 does it still cost CPU power or is it ignored?

if I go:

[view setAlpha:0];

then

[view setFrame:newFrameRect];

What is the performance implication of that?

  • 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-17T10:22:43+00:00Added an answer on June 17, 2026 at 10:22 am

    “Something with an alpha of zero, still is drawn, however a view that is hidden is not redrawn to the screen. Since this only happens when the view changes anyways, the difference should be insignificant…”

    EDIT

    Therefore, setHidden is useful, while changing the alpha is not as beneficial.

    In general, memory-wise, there is little benefit. You need to remove from view in order to maximize performance, but the change is so small, it probably won’t matter.

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

Sidebar

Related Questions

[sourceViewController.view addSubview:destinationController.view]; [destinationController.view setFrame:sourceViewController.view.window.frame]; [destinationController.view setTransform:CGAffineTransformMakeScale(0.5,0.5)]; [destinationController.view setAlpha:0.0]; [UIView animateWithDuration:0.3 delay:0.0 options:UIViewAnimationCurveEaseOut animations:^{ [destinationController.view
Can't how to deal with my problem: part of view are hidden, when page
I have a view that sets its hidden when the user taps the main
the order number of hidden field in grid view is 7. when i click
I'd like to have some hidden inputs on View A.aspx and pass the values
<div class=sortable-sections> <fieldset class=section draggable id=flSectionType> <div class=btn-drag section-handle hidden-view> </div> <div class=section-header> <span
I have a joke app that has a view/menu hidden from the victim. My
I am trying to build a app that will have a view hidden unless
I have the method: - (void)blinkView:(UIView *)view { view.layer.opacity = 0.0f; view.hidden = NO;
View History on an file in a branch show only changes since the branch.

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.