Transparent UITableViewCell flashing background when animating

Viewed 3737

I have a UIViewController with a custom background color. On top of it there's a UITableView with UITableViewCells that are semi-transparent (white color with opacity 0.5).

The issue I'm blaming about and the one I'm banging my head against the wall is in iOS 7, when you have a UITableViewCell with semi-transparent background and you try to delete/insert/moving rows (so relying on an animation effect) the entire UITableView with its cells flashing for just 0.1 second and set cells background to a more transparent one. This is very annoying.

The only thing I'm doing is set the background color of self.view with:

self.view.backgroundColor = [UIColor colorWithRed:0.4 green:0.5 blue:0.7 alpha:1];

and set the background color of cells with:

- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
    cell.backgroundColor = [UIColor colorWithWhite:1 alpha:0.5];
}

Here's a gif showing you the problem:

enter image description here

And here's the super simple project: https://github.com/socksz/TransparentCellFlashing

Please help me to solve this ridicolous issue! :P

1 Answers
Related