开发者

How to set UITableView cell alpha?

I have to set the cells alpha to minimum. I try开发者_开发知识库 the following code in cell for row, it's not working. I've also set opaque but it's still not working. Anyone have an idea about this?

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) 
{
    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
cell.alpha =0.5;


try this..

cell.contentView.alpha = 0.5;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜