I am trying to create a transparent table with an alpha value. In my main loop, I create a background image, add it to the main window, then create a UITableView with a backgroundColor that is transparent and add it to the main window. For some reason the tableView background color is getting set twice on cells with entries. (i.e. a cell with an entry have an alpha value of 0.8 instead of 0.4)
In my UITableView init method, this is the code that I have
self.tableView.backgroundColor = [UIColor colorWithWhite:1 alpha:0.4];
[self.tableView setNeedsDisplay];
This works for the most part, except for some weird reason cells that have entries are less transparent than cells that do not have entries
I have tried putting the following in my cellForRowAtIndexPath method: (tried all of the cell's subviews just to be sure)
cell.backgroundView.backgroundColor = [UIColor clearColor];
cell.contentView.backgroundColor = [UIColor clearColor];
cell.textLabel.backgroundColor = [UIColor clearColor];
[cell.backgroundView setNeedsDisplay];
[cell.contentView setNeedsDisplay];
[cell.textLabel setNeedsDisplay];
this did not do anything to solve the issue. I've searched extensively online but no one else seems to have run into this issue; any help would be greatly appreciated!