iPad groupTableViewBackgroundColor破碎? [英] iPad groupTableViewBackgroundColor broken?

查看:149
本文介绍了iPad groupTableViewBackgroundColor破碎?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道如何在iPad上获取groupTableViewBackgroundColor?这似乎在4.2中打破。我试图抓住如果从使用颜色选择器的视图,但当我重用它作为另一个视图的背景颜色是一个不同的灰色阴影。

Anyone know how to get the groupTableViewBackgroundColor on an iPad? This seems to be broken in 4.2. I've tried grabbing if from the view using the color picker, but when I reuse it as the background color for another view it's a different shade of gray.

推荐答案

好,结果是

[UIColor groupTableViewBackgroundColor]

在iPad上的行为与iPhone上的不一样。分组表视图实际上有一个渐变作为背景。我找到了两个可能的解决方案,我的特殊需要,它们是:

does not behave the same on iPad as on iPhone. The grouped table views actually have a gradient as a a background. I have found two possible solutions for my particular need, which are:


  1. 添加我需要的背景上的表视图本身

  2. 设置我自己的背景颜色,实线或其他方式。

这篇关于iPad groupTableViewBackgroundColor破碎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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