我正在尝试将 UITableViewCell
的背景颜色设置为透明。但似乎没有任何作用。我在 tableViewCell
中有一些图像/按钮,我想让白色的 grouptableview
背景消失,以获得图像和按钮的“ float ”效果(就像它们一样)不在 tableview
内)。
知道如何实现这一点吗?
最佳答案
如果其他选项都不起作用,请尝试此
UIView *backView = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];
backView.backgroundColor = [UIColor clearColor];
cell.backgroundView = backView;
关于iphone - 如何创建具有透明背景的 UITableViewCell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1008246/