在保留纹理的同时更改iPhone tableview(样式分组)背景颜色 [英] Change iPhone tableview (style grouped) background color while preserving texture

查看:79
本文介绍了在保留纹理的同时更改iPhone tableview(样式分组)背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们怎样才能改变tableview的背景颜色(样式分组),同时仍保留我们可以看到的具有默认蓝色的细柱/线条效果。如果我尝试使用backgroundcolor属性更改背景颜色,我会得到一个没有任何纹理的普通视图。

How can we change the background color of tableview (style grouped) while still preserving texture of thin columns/lines effect that we can see when it has the default blue color.If i try to change background color using backgroundcolor property i get a plain view without any texture.

谢谢

推荐答案

tableview.backgroundView = nil;
tableview.backgroundColor = [UIColor clearColor];

这可以帮助您解决问题

这篇关于在保留纹理的同时更改iPhone tableview(样式分组)背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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