1-> you can use check Boxes for in your UITableView
for mutli section (Check box can be implemented by UIButton
). one check box per row.
2-> Use a flag (BOOL isSelected
),set it true when user select a cell (tableView:didSelectRowAtIndexPath:)
,and make it false for next touch,
for second approach you could use a custom UITableViewCell
and use a image to show cell selection to the user (image can be changed by using isSelected
value in tableView:didSelectRowAtIndexPath:
method.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…