Home IOS Development goal c – iOS Strong textual content over a background picture and low alpha cell background

goal c – iOS Strong textual content over a background picture and low alpha cell background

0
goal c – iOS Strong textual content over a background picture and low alpha cell background

[ad_1]

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 by means of the textual content and cell background. I solely wish to see the picture by means of the cell background and have the textual content strong.

Is there a option to set the textual content to have an alpha of 1.0 whereas the background is 0.5?

app screenshot

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here