我有一个基于Tweetie的Fast scrolling example的自定义单元格的UITableViewController,我需要透明度。无法在编程创建的自定义单元格中设置透明度
到现在为止,我装我的细胞笔尖和所有我需要的是设置一些表的属性来
table.backgroundColor = [UIColor clearColor];
table.opaque = NO;
table.rowHeight = 130.0f;
table.separatorStyle = UITableViewCellSeparatorStyleNone;
为了使表透明。至于电池,我所做的:
cell.backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"cellbackground.png"]];
cell.selectedBackgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"cellbackground.png"]];
,所以我不得不每一个细胞与背景图像,但是,其余的完全透明(一半的图像是完全透明的)。现在,以编程方式创建单元格并绘制所有内容,但我无法使单元格透明。图像部分看起来不错,但一切是黑色的,而不是不透明
您是否将单元格的backgroundColor设置为clearColor? * cell.backgroundColor = [UIColor clearColor]; * – 2011-05-02 00:58:05