From 3a0d2d34e292a0291e30e4e6fb4bdf82dc59db5e Mon Sep 17 00:00:00 2001 From: Matthew Flint Date: Tue, 13 Aug 2013 19:55:14 +0100 Subject: [PATCH] Set backgroundColor on a UITableViewCell instead of creating a new backgroundView - this now plays happily with cells in a grouped table --- NUI/Core/Renderers/NUITableViewCellRenderer.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/NUI/Core/Renderers/NUITableViewCellRenderer.m b/NUI/Core/Renderers/NUITableViewCellRenderer.m index cfbc8349..cce7143b 100644 --- a/NUI/Core/Renderers/NUITableViewCellRenderer.m +++ b/NUI/Core/Renderers/NUITableViewCellRenderer.m @@ -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