Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone: Putting only one section of UITableView in Edit mode

I have three sections in my hypothetical UITableView. I'd like one section that is in editing mode. The rest of the sections to not be in editing mode. Is this possible at all?

like image 991
Coocoo4Cocoa Avatar asked Feb 23 '09 20:02

Coocoo4Cocoa


1 Answers

This really shouldn't be a mystery, as it's spelled out clearly in the documentation. Simply use the datasource method

- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
like image 70
August Avatar answered Nov 14 '22 10:11

August