如何设置UITableView的背景(tableview样式为“Grouped”)才能使用图像?
问题描述:
如何设置UITableView的背景(tableview样式为Grouped)才能使用图像?
How can I set the background of UITableView (the tableview style is "Grouped") to use an image?
答
在较新版本的SDK中,如果你想让它透明,你需要设置 tableView.backgroundView
,尝试这样的事情:
In newer versions of the SDK, you'll need to set tableView.backgroundView
if you want it to be transparent, try something like this:
tableView.backgroundColor = [UIColor clearColor];
tableView.opaque = NO;
tableView.backgroundView = nil;