I have set the highlight color for selecting a cell, its pretty simple. However, when I set the alpha of my UIView it does not respond. I tried putting a label in the view and setting the alpha and it did not work either. Does anyone know why this is happening?
Here is the code I'm using for setting highlight color:
[cell setSelectionStyle:UITableViewCellSelectionStyleDefault];
UIView *highlightView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, cell.frame.size.width, cell.frame.size.height)];
highlightView.backgroundColor = [UIColor clearColor];
UILabel *backLabel = [[UILabel alloc] initWithFrame:highlightView.frame];
backLabel.backgroundColor = [UIColor blueColor];
backLabel.alpha = 0.5f;
[highlightView addSubview:backLabel];
cell.selectedBackgroundView = highlightView;
All I really want is for the highlight color to have a transparency effect. Setting it as a straight color like blue or red is just really intense with my background image. Thanks for any suggestions and help!