How can you get the selected rows from a UITableView?

后端 未结 1 1881
猫巷女王i
猫巷女王i 2021-02-13 04:44

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         


        
1条回答
  •  春和景丽
    2021-02-13 05:19

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

    tableView.allowsMultipleSelection = YES;
    

    0 讨论(0)
提交回复
热议问题