Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableview Set Multi Selection programmatically

MultiSelection

In my storyboard app I can select the multiple selection during editing mode. But my other app where everything is done programmatically i can't seem to find out where to program this. Where can i set the Editing mode for UITableView?

like image 507
inVINCEable Avatar asked Jan 08 '23 23:01

inVINCEable


1 Answers

Objective-C version:

[self.tableView setAllowsMultipleSelection:YES];
[self.tableView setAllowsMultipleSelectionDuringEditing:YES];

and Swift one:

self.tableView.allowsMultipleSelection = true
self.tableView.allowsMultipleSelectionDuringEditing = true
like image 92
tbaranes Avatar answered Jan 19 '23 05:01

tbaranes