UITableViewCell puts selectedBackgroundView on top of contentView

Originator:flo.gehring
Number:rdar://15039241 Date Originated:Sept 20 2013
Status:Open Resolved:
Product:iOS SDK Product Version:7.0
Classification: Reproducible:always
 
Summary:
UITableViewCell puts the selectedBackgroundView on top of contentView when reusing cells.

Steps to Reproduce:
1. Create a table view controller in Storyboard
2. Set a backgroundView for the cell in cellForRowAtIndexPath:
3. Set a selectedBackgroundView for the cell in cellForRowAtIndexPath:
4. Set AllowsMultipleSelectionOnEditing to YES and set the viewcontroller to Editing in viewDidLoad
5. Launch the app, select some of the top rows. Scroll them out of the view and back.


Expected Results:
- The selected cell shows the selectedBackgroundView behind the contentView on cells that had been scrolled away

Actual Results:
- The selected cells show the selectedBackgroundView on TOP of the contentView and thus hide any labels etc. 
- Setting the selectedBackgroundView to 50% opacity lets the labels shine through. 

Version:
iOS 7.0

Notes:
The problem does not occur when there is no backgroundView set for the cell.

Configuration:
iOS 7, tested on Simulator & iPhone 5

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!