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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:33:44+00:00 2026-05-25T02:33:44+00:00

[FIXED] After trying quite a few different solutions I finally got one to work.

  • 0

[FIXED]
After trying quite a few different solutions I finally got one to work. All I needed to do was set the cell backgroundColor to clear in the willDisplayCell method:

- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath 

[cell setBackgroundColor:[UIColor clearColor]];

My UITableview has a background image (Photo) and the cells in the table view have a semi-transparent background.

When i first show the UITableView the cells are not showing as transparent. But as soon as I scroll a cell off screen and scroll it back on the cell displays with the semi-transparent background.

Does anyone have any clues as to why it doesn’t display correctly until the cell is scrolled off screen? See attached images. First one shows the tableview as soon as its loaded. and the second image shows what it looks like after scrolling the top few cells off screen and back on again.

Initial state of tableview.  The cells are not showing semi-transparent
Top3 cells have been scrolled off screen and back on again and display how I want them to

Below is the code I’m using to setup the cell.

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellPhotoIdentifier = @"PhotoDescriptionCell";


      UITableViewCell *cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellPhotoIdentifier] autorelease];

    // Configure the cell...
    cell.textLabel.text = [NSString stringWithFormat:@"Photo description %i", indexPath.row];
    cell.textLabel.textColor = [UIColor whiteColor];
    cell.opaque = NO;
    cell.contentView.backgroundColor = [UIColor blackColor];
    cell.contentView.opaque = NO;
    cell.contentView.alpha = 0.7;
    cell.textLabel.backgroundColor = [UIColor clearColor]; 

    return cell;
}

I’m using XCode 4 with IOS SDK 4.3

  • 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-25T02:33:45+00:00Added an answer on May 25, 2026 at 2:33 am

    After re-reading the answer that @progrmr gave the link for, I tried again and managed to get it to work.

    I needed to set the Cell Background Color to clear in the willDisplayCell method

    - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath 
    

    [cell setBackgroundColor:[UIColor clearColor]];

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

Sidebar

Related Questions

I'm trying to re-position a fixed footer in jQuery Mobile after I hide an
I'm trying to dynamically assign a different instance of jQuery-UI's resizable after the DOM
I am trying to make a fixed div appear after the user scrolls 100px
I am trying to work out the best way to generate all possible permutations
Am working on a small problem and have spent quite a few hours trying
After trying to set up webservice setup using Ruby I encountered problems with xmlparser.
I'm trying to put two blocks into one fixed-height block to create the following
For example, dynamic and fluid between 600px - 1000px, but fixed at 1000px after
We have set a fixed limit on the filesize of uploads on our site
I'm trying to load some dynamic content after the user has logged in, using

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.