How can you get the selected rows from a UITableView? How can you get the selected rows from a UITableView? xcode xcode

How can you get the selected rows from a UITableView?


For the indexPathsForSelectedRows: method to work properly, you have to configure the table view to allow multiple selection of cells:

tableView.allowsMultipleSelection = YES;