且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从UITableView获取所选行?

更新时间:2023-12-03 16:08:58

对于 indexPathsForSelectedRows:方法要正常工作,您必须配置表视图以允许多个单元格选择:

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

tableView.allowsMultipleSelection = YES;