Trying to create a grouped tableview with trasnparent cells without any borders. Tableview\'s background color from top to bottom goes darker to lighter.
but somehow ta
UPDATE Turns out, this will do the trick for grouped tables:
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
cell.backgroundColor = [UIColor clearColor];
cell.layer.backgroundColor = [UIColor clearColor].CGColor;
}
You've just got to set the cell's layer background color in addition to setting the cell's background color.
ORIGINAL If you can use ungrouped (I don't see anything in your mockup that needs grouped style), the following should work:
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
cell.backgroundColor = [UIColor clearColor];
}
I'm not aware of a solution for grouped other than faking it by breaking your background into tiles and putting the tiles in your rows. The tiled approach can actually provide much better scrolling performance on older devices.