Setting UITableViewCell selected programmatically yields a black box

Originator:rjo218
Number:rdar://12538856 Date Originated:19-Oct-2012 05:50 PM
Status:Closed Resolved:
Product:iOS SDK Product Version:6.0
Classification: Reproducible:Always
 
19-Oct-2012 05:50 PM Roberto Osorio:
Summary:
Setting a UITableViewCell to selected programmatically in the tableView:cellForRowAtIndexPath causes the cell to display a black box, instead of its appropriate selected state.

Steps to Reproduce:
1) Create UITableViewController subclass.
2) Populate with data.
3) In the tableView:CellForRowAtIndexPath, before returning a cell, set it selected using [cell setSelected:YES];

Expected Results:
The cell's selected state should show.

Actual Results:
A black box shows on the cell.

Regression:

Notes:
By setting the cell to selected in the tableView:willDisplayCell:forRowAtIndexPath method, the problem is not encountered.

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!