Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit Mode in UITableView

So i've implemented the

- (BOOL)tableView:(UITableView *)tableView
canEditRowAtIndexPath:(NSIndexPath *)indexPath

and

- (void)tableView:(UITableView *)tableView
commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
forRowAtIndexPath:(NSIndexPath *)indexPath

but how will i trigger something to switch the tableview to edit mode? like the messages in iphone when you click edit, the delete icons appear. this might sound very basic but i'm getting no clue over this and its a little urgent, any clue will be appreciated, thanks.

like image 477
Syed Absar Avatar asked Jul 26 '26 14:07

Syed Absar


1 Answers

[tableView setEditing:YES animated:YES];
like image 150
Alex Wayne Avatar answered Jul 29 '26 07:07

Alex Wayne



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!