tableView:commitEditingStyle:forRowAtIndexPath is called with indexPath == nil when deleting.
| Originator: | herlihalim | ||
| Number: | rdar://16386709 | Date Originated: | |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 7.0 |
| Classification: | Reproducible: | Always |
Summary: The delegate method is called, even though when it shouldn't when tapping delete button multiple times, with indexPath == nil. Steps to Reproduce: 1. Setup a basic project with UITableViewController. 2. Add a few items. 3. Trigger editing mode / just swipe to delete the last row. 4. When the delete button appears, tap it multiple times. (Keep tapping even though the button is no longer there). 5. tableView:commitEditingStyle:forRowAtIndexPath: is called with the value of indexPath == nil. The delegate method is only called this way if the current row is the last row. Expected Results: tableView:commitEditingStyle:forRowAtIndexPath: not being called at all. Delete button is no longer visible, user shouldn't be able to interact with it. Actual Results: Delete button is still interactive even though it's not longer visible. Version: iOS 7 above.
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!