is groupTableViewBackgroundColor deprecated on iOS 6?

estemendoza picture estemendoza · Sep 17, 2012 · Viewed 12.4k times · Source

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.

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?

Thanks

Answer

dhcdht picture dhcdht · Sep 17, 2012

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.