swiping with multiple fingers over multiple rows reveals multiple delete buttons (even if row isnt editable)
| Originator: | Pich.Dominik | ||
| Number: | rdar://16810841 | Date Originated: | 5/5/2014 |
| Status: | Open | Resolved: | New |
| Product: | iOS SDK | Product Version: | 7.1.1 |
| Classification: | UI | Reproducible: | Always |
Summary:
swiping with multiple fingers over multiple rows reveals multiple delete buttons (even if row isnt editable)
canEditRowAtIndexPath isnt called for all cells
Steps to Reproduce:
1. start the attached demo code (minimally modified apple sample code)
2. add 10 rows .. (first 5 are not editable, 5 last ones are)
3. swipe with ..... 2+ fingers. Hit an editable row and one not editable row
Expected Results:
only one editable row -> only one delete button
Actual Results:
even the non-editable row has an edit button
so there are multiple
Version:
IOS 7.1.1
Notes:
Configuration:
Attachments:
'test.zip' was successfully uploaded.
for OpenRadar: this is the stock Master-Detail Template App
modified
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
// Return NO if you do not want the specified item to be editable.
if(indexPath.row <= _objects.count/2) return NO;
return YES;
}
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!