UITableView Background in a Standard UIView

While exploring the CoreDataBooks sample iPhone app, I came upon the EditingViewController which I noticed had the same grey/white bar background as does a UITableView has when it’s in grouped style. After fiddling with the Background property for some time, I eventually figured out how to set the Background to the same background pattern.

1. Open the Inspector window for UIView and click Background.


2. Select “Color Palettes” (middle icon) and in the Palette drop down, select “iPhone SDK”.


3. In the options, select “groupTableViewBackgroundColor” and you’re done!


Your view should now have the same bar pattern as a grouped table view!



Comments are closed.