-tableView:didUnhighlightRowAtIndexPath: called with incorrect IndexPath when canceling a selection by dragging the table view

Originator:javier.api
Number:rdar://13731538 Date Originated:24-Apr-2013 03:08 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:6.0.2
Classification:UI/Usability Reproducible:Always
 
Summary:
The method -tableView:didUnhighlightRowAtIndexPath: of UITableViewDelegate is called consistently with an incorrect index path:
<NSIndexPath 0xdc3c530> 2 indexes [2147483647, 2147483647]
when canceling a selection by dragging the table view.

Steps to Reproduce:
- Create a standard table view
- implement -tableView:didUnhighlightRowAtIndexPath: in the delegate object.
- Log the value of indexPath
- Tap on one of the cells of the table view to see it highlight, but don't release your finger.
- Drag your finger out of the cell so that the selection is canceled
- The cell is unhighlighted and the delegate method is called with the incorrect value.

Expected Results:
- The delegate method is called with the cell that was just unhighlighted.

Actual Results:
- The delegate method is called with a wrong value. It looks like an overflow since this value is (NSUInteger)(-1)

Regression:

Notes:

Comments

Duplicate filed.

I've got this as well. Dupe filed.


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!