在 iOS 6 上不推荐使用 groupTableViewBackgroundColor 吗? [英] is groupTableViewBackgroundColor deprecated on iOS 6?
问题描述
我刚刚用 iOS 6.0 和 Xcode 4.5GM 测试我的应用程序,我已经设置了这样的视图:
I was just testing my app with iOS 6.0 and Xcode 4.5GM and I have set up a view like this:
[self.view setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
因此,视图与普通表视图具有相同的模式.
So, the view has the same pattern than a common table view.
这在 iOS 4 和 5 上运行良好,但在 iOS 6 中它只会给我一个白色背景.
This works fine on iOS 4 and 5, but in iOS 6 it just gives me a white background.
这是否已被弃用?如果是这样,我该如何更换它?
Is this deprecated? If so, how can I replace it?
谢谢
推荐答案
此方法将在 6.0 种子计划中弃用如果你想在你自己的视图中有一个看起来像表格视图背景的背景,那么你应该创建一个空的 table view 并将它放在你的内容后面.
This method will be deprecated during the 6.0 seed program If you want to have a background in your own view that looks like the table view background, then you should create an empty table view and place it behind your content.
这篇关于在 iOS 6 上不推荐使用 groupTableViewBackgroundColor 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!