如何删除UITableViewCell的白色背景 [英] How to remove the white background of UITableViewCell
本文介绍了如何删除UITableViewCell的白色背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想删除UITableViewCell的默认白色背景,就像我希望单元格的背景是透明的那样,以便显示窗口的实际背景.
I want to remove the default white background of UITableViewCell like I want the background of the cell being transparent so that it shows the actual background of the window.
推荐答案
我明白了.
UIView *backView = [[[UIView alloc] initWithFrame:CGRectZero] autorelease];
backView.backgroundColor = [UIColor clearColor];
cell.backgroundView = backView;
这篇关于如何删除UITableViewCell的白色背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文