如何设置UITableView的背景(tableview样式为“Grouped”)才能使用图像? [英] How can I set the background of UITableView (the tableview style is "Grouped") to use an image?

查看:88
本文介绍了如何设置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;

这篇关于如何设置UITableView的背景(tableview样式为“Grouped”)才能使用图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆