Skip to content

Commit

Permalink
Set backgroundColor on a UITableViewCell instead of creating a new ba…
Browse files Browse the repository at this point in the history
…ckgroundView - this now plays happily with cells in a grouped table
  • Loading branch information
mflint committed Aug 13, 2013
1 parent b3d16d1 commit 3a0d2d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions NUI/Core/Renderers/NUITableViewCellRenderer.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ + (void)renderSizeDependentProperties:(UITableViewCell*)cell

// Set background color
if ([NUISettings hasProperty:@"background-color" withClass:className]) {
UIImage *colorImage = [NUISettings getImageFromColor:@"background-color" withClass:className];
cell.backgroundView = [[UIImageView alloc] initWithImage:colorImage];
cell.backgroundColor = [NUISettings getColor:@"background-color" withClass:className];
}

// Set background gradient
Expand Down

0 comments on commit 3a0d2d3

Please sign in to comment.