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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:03:58+00:00 2026-06-05T04:03:58+00:00

I have a UITableViewController that I’m trying to custom style. I’ve got 95% of

  • 0

I have a UITableViewController that I’m trying to custom style. I’ve got 95% of the way there, but am having trouble removing an odd shading from the cell background. I’ve highlighted what I’m trying to remove in this screen shot:

Normal View

To try and resolve this issue, I’ve dumped all the views that are composing my UITableView and then colored them to try and find the view I need to change:

Styled View

As you can see, I’ve been unable to color that specific spot. Said differently, I can’t find a view associated with that spot.

How do I remove that shading from my cells?

  • 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-05T04:03:59+00:00Added an answer on June 5, 2026 at 4:03 am

    The table view is restarting the gradient behind each section, since it is just taking the colour you have given it.

    Instead, use the backgroundView property of the table view – create an image view using your image, and set this as the background view, or create a UIView with background colour as you are doing above.

    You will need to remove any code you have setting background colours elsewhere, and make sure your section header views either have clear backgrounds, or a contrasting background.

    As a simple demonstration, I have created a grouped table view with its background colour set to clear, and the following code in viewDidLoad of the table view controller:

    - (void)viewDidLoad
    {
        [super viewDidLoad];
    
        UIView *backgroundView = [[UIView alloc] initWithFrame:self.tableView.bounds];
        CAGradientLayer *layer = [CAGradientLayer layer];
        layer.colors = [NSArray arrayWithObjects:(id)[UIColor redColor].CGColor,(id)[UIColor whiteColor].CGColor, nil];
        layer.frame = backgroundView.frame;
        [backgroundView.layer addSublayer:layer];
        self.tableView.backgroundView = backgroundView;
    }
    

    This gives the following (admittedly, pretty ugly!). The cells “float” on top of this.

    enter image description here

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

Sidebar

Related Questions

I've got a UITableViewController that inserts custom UITableViewCells into a UITableView. Is there a
I have created a subclass of UITableViewController that is used as the custom class
I have a UITableViewController that has custom cells that I have customized with my
I have an iPad app that has a UITableViewController that implements the NSFetchedResultsControllerDelegate .
I have a UIViewController that inherits from UITableViewContoller: @interface AllProductsViewController : UITableViewController And I
I have 8 cells that are being built in my UITableViewController. I would like
I have made a XML parser that list correctly in the UITableViewController. It passes
I have a UITableView that I want to edit inside of a UITableViewController. This
I have a subclass of UITableViewController. I have code that can add/remove a UISearchBar
I have a UITableViewController that when opened displays a table of the following object:

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.