So I\'ve written this code to put a checkmark beside a row that I want selected because I want multiple selected rows
UITableViewCell *cell = [tableView cellForR
For the indexPathsForSelectedRows: method to work properly, you have to configure the table view to allow multiple selection of cells:
indexPathsForSelectedRows:
tableView.allowsMultipleSelection = YES;