ios6,tableView设置背景透明无效
2013-03-18 17:34
399 查看
这个问题只在UITableViewStyleGrouped类型的UITableView中出现,UITableViewStylePlain类型的tableView没有这个问题,因为Group类型的TableView有个backgroundView,而plain类型的TableView没有(backgroundView属性为nil),目前看来,这可能因为backgroundView在中间挡住了背景色。
目前对于这个问题的解决方法是将Group类型的tableView的backgroundView设为一个新的空白View或简单的设置为nil.如下
或
目前对于这个问题的解决方法是将Group类型的tableView的backgroundView设为一个新的空白View或简单的设置为nil.如下
tableView.backgroundView = [[UIView alloc]init]; tableView.backgroundColor = [UIColor clearColor];
或
tableView.backgroundView = nil; tableView.backgroundColor = [UIColor clearColor];
相关文章推荐
- navigation bar透明设置和view的背景图片设置-tableview全屏覆盖无法正常显示背景图片
- Android webview背景设置为透明无效 拖动时背景闪烁黑色
- Android webview背景设置为透明无效 拖动时背景闪烁黑色
- Android webview背景设置为透明无效 拖动时背景闪烁黑色
- Android webview背景设置为透明无效
- Android webview背景设置为透明无效
- Android之webview背景设置为透明无效
- Android webview背景设置为透明无效 拖动时背景闪烁黑色
- Android webview背景设置为透明无效
- -- tableView的cell背景设置为透明时,文字会重叠在一起 -
- Android webview背景设置为透明无效
- 设置SurfaceView背景透明
- 如何将TextView设置背景透明(不改变本身颜色)
- 设置SurfaceView 背景为透明
- 关于AutoCompleteTextView设置背景无效的解决办法
- swift开发笔记3 - 设置tableview背景图片
- android设置WebView背景透明
- tableView背景设置
- ios TableView设置背景图片
- TextView 背景设置无效解决