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.

01.png

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

03.png

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

04.png

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

05.png

,

  1. No comments yet.
(will not be published)