If you have used Messages application in iOS, you know how we could invoke UITableViewCellAccessoryCheckmark in any message through edit button and then select each bubble/cell for forward or deletion purpose.
I’m trying to do the same in my application. I can tap on edit and UITableViewCellAcessoryCheckMark is shown, but I can’t select the cells using it. What more do I need to implement?

Any help would be appreciated. Here is the code –
- (void)viewDidLoad
{
[super viewDidLoad];
self.navigationItem.rightBarButtonItem = self.editButtonItem;
}
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
return UITableViewCellAccessoryCheckmark;
}
For a table view as shown in the picture, where one or more cells can be selected with a checkmark symbol, you have to set
allowsMultipleSelectionDuringEditing = YESon the table view. This can be done either inviewDidLoadwithor in the Attributes Inspector of the table view in the NIB/Storyboard file by setting “Editing” to “Multiple Selection During Editing”.
The
tableView:editingStyleForRowAtIndexPath:method is not needed for this.(And btw your method returns
UITableViewCellAccessoryCheckmarkwhich is aUITableViewCellAccessoryTypeand not aUITableViewCellEditingStyle.)