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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:21:29+00:00 2026-06-08T08:21:29+00:00

Before Starting I want to make sure one thing whether we can make the

  • 0

Before Starting I want to make sure one thing whether we can make the ViewController transparent (alpha), as far my knowledge it is NO.

I have a ViewController which consists of 8 UIButton objects over it. Whenever I press Button1, Button2 I am loading a ViewController. Since the ViewController cannot be made transparent, I just moved that View to my HomeViewController.xib and I am loading the view using -addSubView:. And I am changing the alpha value to make it as transparent.

But the thing is in Button1 View and Button2 View, in both views I am having table view. When I bring everything to the same HomeViewController class , I am having too much of code in a single class.

Is there any way to do this?? Adding many Views in the same ViewController not a problem, but it increases the code too. Which looks ugly. Please help me out.

If I have confused about my question here I am giving a short description of what I would like to do
Whenever I press a Button in ViewController, I want to load a View/ViewController Transparently.

  • 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-08T08:21:32+00:00Added an answer on June 8, 2026 at 8:21 am

    Before Starting I want to make sure one thing whether we can make the
    ViewController transparent (alpha), as far my knowledge it is NO.

    You can’t adjust a view controllers alpha directly. You can adjust a view controllers view properties alpha, ex: myViewController.view.alpha, and you can do this for any view that you want except for your root view (the bottom of the view stack). Lowering your root views alpha would allow the user to see the springboard through your app.

    But the thing is , In Button1 View and Button2 View , in both views I
    am having table view. When I bring everything to the same
    HomeViewController class , I am having too much of code in a single
    class.
    Is there any way to do this ?? Adding Many Views in the same
    ViewController not a problem, but it increases the code too. Which
    looks ugly. Please help me out.

    I’m not sure I understand the problem here. As long as you format your code correctly and keep well organized this isn’t a problem. I personally have used view controllers in excess of 15k lines of code and never had a problem, and I’m sure there are developers that have used way more.

    If I have confused about my question here I am giving a short
    description of what I would like to do Whenever I press a Button in
    ViewController , I want to load a View/ViewController Transparently.

    Continue the way you have been describing. (adding alpha adjusted UIView‘s as subviews) There is nothing wrong with this approach.

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

Sidebar

Related Questions

want to make a check in my installer before starting installation if any other
I'm running some benchmark tests over my code and I want to make sure
this is my first programming course, and i want to make sure i am
I forgot to take branch of my working directory before starting to make whole
I'm very new to Android development, and want to make sure that I'm structuring
Before starting, I'm not asking about standard coding practice or etiquette. My question is
I was waiting for the stable release of Netbeans 6.7 before starting to use
Please note that this is not homework and i did search before starting this
As we know UML contains 13 types of diagrams (structural and behavioral) before starting
My program does some network activity in a background thread. Before starting, it pops

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.