iOS UITableViewCellAccessoryCheckmark Visible ob every scroll

后端 未结 4 1315
甜味超标
甜味超标 2021-01-28 02:50

I have a list which I have using as a check boxes. I have enable or disable Check mark on row on select. But when I scroll the list its make mark row after every 10 rows.

<
4条回答
  •  忘掉有多难
    2021-01-28 03:19

    You need to put your logic to set accessory type for cell in cellForRowAtIndexPath, and to identify the cell to mark with check mark you can mark the object in the list in didSelectRowAtIndexPath: or manage an array of selected/unselected objects of the list here.

提交回复
热议问题