Note that there are some explanatory texts on larger screens.

plurals
  1. POTransparent UITableViewCell flashing background when animating
    primarykey
    data
    text
    <p>I have a <code>UIViewController</code> with a custom background color. On top of it there's a <code>UITableView</code> with <code>UITableViewCells</code> that are semi-transparent (white color with opacity 0.5).</p> <p>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 <code>UITableViewCell</code> with semi-transparent background and you try to delete/insert/moving rows (so relying on an animation effect) the entire <code>UITableView</code> with its cells <strong><em>flashing</em></strong> for just 0.1 second and set cells background to a more transparent one. This is very annoying.</p> <p>The only thing I'm doing is set the background color of <code>self.view</code> with:</p> <pre><code>self.view.backgroundColor = [UIColor colorWithRed:0.4 green:0.5 blue:0.7 alpha:1]; </code></pre> <p>and set the background color of cells with:</p> <pre><code>- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { cell.backgroundColor = [UIColor colorWithWhite:1 alpha:0.5]; } </code></pre> <p>Here's a gif showing you the problem: </p> <p><img src="https://i.stack.imgur.com/L5c8S.gif" alt="enter image description here"></p> <p>And here's the super simple project: <a href="https://github.com/socksz/TransparentCellFlashing" rel="nofollow noreferrer">https://github.com/socksz/TransparentCellFlashing</a></p> <p>Please help me to solve this ridicolous issue! :P</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload