I have an iPhone application that uses TableView to display marked items saved by the user. I have a delete explorer for these items, but I ran into a problem with the very first item in the table. All other items display the Delete button when scrolling, but it does not work for the first line.
I searched and searched for the answer to this question. I would be grateful for your help!
- (UITableViewCellEditingStyle) tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { if([indexPath row] == 0) { return UITableViewCellEditingStyleNone; } return UITableViewCellEditingStyleDelete; }
source share