如何禁用UITableViewCell中的多项选择

时间:2019-06-18 04:25:18

标签: ios objective-c

我为UITableViewCell设置了一种编辑样式,如下所示。预期它在我的UITableViewCell中显示为复选框。 但我也想禁用多个选择,即,用户只能选择一个单元格。我可以吗?

-(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{
   return 3;
}

0 个答案:

没有答案
相关问题