Table view cell background colors set in IB are ignored (iPad only)

Originator:Greiner.Mike
Number:rdar://14965847 Date Originated:2013-09-11
Status:Open Resolved:
Product:iOS SDK Product Version:7.0
Classification:Bug Reproducible:Yes
 
Summary:
When I setting a table view cell background color to something other than white in a NIB or storyboard, that color gets changed to white sometime after the NIB is loaded.

This behaviour appears to affect iPad only. When running on an iPhone, I see the table view cell background colors that I expect.

Steps to Reproduce:
1. Open Main.storyboard in the attached sample. Note that the single prototype cell has a black background color.
2. Run the app in the iPhone simulator. Note that the cells are black as expected.
3. Run the app in the iPad simulator. Note that the cells are white.

Expected Results:
The iPad cells should be black as specified in the storyboard.

Actual Results:
The cells are being set to white by the framework at some point.

Version:
iOS 7 GM (11A465)

Notes:
Workaround: The background color can be customized in -[UITableViewDataSource tableView:cellForRowAtIndexPath:] or in -[UITableViewDelegate tableView:willDisplayCell:forRowAtIndexPath:]

Sample Project:
https://www.dropbox.com/s/o2ebkqvkmnuz8ns/CellColour.zip

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!