Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ljg93

macrumors member
Original poster
Mar 13, 2011
98
0
Hello,

I have a image I would like to use as my section header In the viewForHeader in section I have the following code
Code:
   UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 40)];
    
    UILabel *label = [[[UILabel alloc] initWithFrame:CGRectMake(0,0, tableView.bounds.size.width - 1,26)] autorelease];
    label.text = title;
    label.textColor =  [UIColor whiteColor];

    label.font = [UIFont fontWithName:@"Futura" size:14];
    label.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"section_bar_green_trans.png"]];;
    [v addSubview:label];


The image I am making the section header is translucent but it appears dark green and solid in the iPhone simulator and on my iPhone.

Is there another way to make the header translucent?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.