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

The Archive Base Latest Questions

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

I have added a subview over my UITableView using: TransparentViewController *tvc = [[TransparentViewController alloc]

  • 0

I have added a subview over my UITableView using:

TransparentViewController *tvc =
        [[TransparentViewController alloc] 
                initWithNibName:@"TransparentViewController" bundle:nil];
[self.view addSubview:tvc.view];

My Nib has a UIImageView in it that has some text and a transparent background.

When I load the detailView for the table for the first time I show the subview that gives a brief explanation of the information that you can see below the text. Works really well.

What i would like to do is alter the alpha of the underlying table so that it is dimmer but not affect the alpha of the overlay subview. If i use:

[self.view setAlpha:(CGFloat)];

It dims the overlay as well. I seem to be having a mental block.

  • 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-28T02:49:42+00:00Added an answer on May 28, 2026 at 2:49 am

    Changing the alpha affects the subviews as well. Your tvc.view is a subview of self.view, so it is naturally going to be affected.

    Why don’t you try this: put another view in tvc.view and send this view to this view to the back.

    (UIView*) back = [[UIView alloc] initWithFrame:CGFrameMake(...)];
    back.backgroundColor = [UIColor grayColor]; // choose a color that you like;
    back.alpha = 0.5; // whatever works for you
    [tvc.view addSubview:back];
    [tvc.view sendSubviewToBack:back];
    

    Set the size and alpha of this new view to something you like. The table view will show through it to a limited extent, which may accomplish what you are trying to do.

    Since this is part of our tvc view, it will appear when you show that view and go away when you hide that view.

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

Sidebar

Related Questions

Ha ii.I have added a subview by using interface of the main view,and i
I am working on UITableView. I have added a table in my view programmatically
I have added a few buttons to self.view. When the user clicks on one
I have a UIPickerView added as a subview to my main view. I also
i have added a UIViewController's view and a button to scrollview as subview...now how
I have a MPMoviePlayerController view added as a subview on my ViewController. I am
I have an alert view with a uitextfield added as a subview. In my
I have added image view as subview in uiview. now i have rotated this
I have a subview that has been added to my UIView. The idea is
I have added multi-language using the short article below. When you add for example

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.