1 //表格透明
2 //
3 [TableView setBackgroundColor:[UIColor grayColor]];
4
5 //Cellu背景色设置
6
7 - (UITableViewCell *)tableView:(UITableView *)tableView1 cellForRowAtIndexPath:(NSIndexPath *
)indexPath
8
9 {
static NSString *SimpleTableIdentifier =
@"SimpleTableIdentifier";
10
11 UITableViewCell *cell =
[tableView dequeueReusableCellWithIdentifier: SimpleTableIdentifier];
12
13 if (cell ==
nil) {
14
15 cell =
[[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier: SimpleTableIdentifier] autorelease];
16
17 }
18
19 cell.backgroundColor=
[UIColor clearColor];
20
21 //改变Cell背景颜色 //
22
23 cell.backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:
@"xian.png"]];
24
25 //加入背景图片//改变行线条颜色
26 [tableView setSeparatorColor:[UIColor clearColor]];}
27
转载于:https://www.cnblogs.com/w-zhijun/archive/2012/05/14/2499143.html
相关资源:JAVA上百实例源码以及开源项目