How do I get the textual content in my cells to indicate as strong textual content whereas nonetheless fading the cell background so I can see the picture behind?
I’ve the next in my ViewController:
`
- (void)viewDidLoad {
// Used to see the background picture
self.tableView.backgroundColor = [UIColor clearColor];
self.tableView.backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background.png"]];
self.tableView.backgroundView.contentMode = UIViewContentModeScaleAspectFill;
}
-(void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *) cell forRowAtIndexPath:(NSIndexPath *)indexPath {
cell.alpha=0.5;
cell.textLabel.alpha=1.0;
}
The result’s proven within the picture the place the background picture may be seen via the textual content and cell background. I solely wish to see the picture via the cell background and have the textual content strong.
Is there a approach to set the textual content to have an alpha of 1.0 whereas the background is 0.5?