5

I like the default background of a grouped UITableView. I'd like to use it on a standard UIView.

I'm unable to find anyone asking this question or any reference how to accomplish it.

Any recommendations on how to do this? Is it even possible outside of creating and image and loading that as the background?

Abizern
  • 146,289
  • 39
  • 203
  • 257
clifgriffin
  • 2,008
  • 3
  • 21
  • 41

1 Answers1

10

You can use the GroupedTableViewBackgroundColor in Interface Builder or

backgroundColor = [UIColor groupTableViewBackgroundColor];
Mats Stijlaart
  • 5,058
  • 7
  • 42
  • 58
  • 1
    groupTableViewBackgroundColor has beed deprecated since iOS 6. Make an empty grouped tableView and place it behind the tableview. See here http://stackoverflow.com/questions/12452810/is-grouptableviewbackgroundcolor-deprecated-on-ios-6 – Matt Miller Nov 15 '12 at 13:35