Skip to content

Commit

Permalink
Merge pull request #2817 from BlainHamon/timob-10474
Browse files Browse the repository at this point in the history
TIMOB-10474: In event of a non-opaque bgcolor, clear the textlabel color
  • Loading branch information
srahim committed Aug 24, 2012
2 parents 540ab21 + d40ee41 commit 7e42ff7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion iphone/Classes/TiUITableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -2078,7 +2078,13 @@ -(void)tableView:(UITableView *)ourTableView willDisplayCell:(UITableViewCell *)
}
}
UIColor * cellColor = [Webcolor webColorNamed:color];
cell.backgroundColor = (cellColor != nil)?cellColor:[UIColor whiteColor];
if (cellColor == nil) {
cellColor = [UIColor whiteColor];
}
cell.backgroundColor = cellColor;
if(CGColorGetAlpha([cellColor CGColor])<1.0) {
[[cell textLabel] setBackgroundColor:[UIColor clearColor]];
}
}

- (NSString *)tableView:(UITableView *)ourTableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath
Expand Down

0 comments on commit 7e42ff7

Please sign in to comment.