iOS Way the Checkmark disappears when begin scroll down

后端 未结 2 509
轮回少年
轮回少年 2021-01-23 09:25

Way the Checkmark disappears when begin scroll down.

Heres the code for the didSelectRowAtIndexPath method:

- (void)tableView:(UITableView *         


        
2条回答
  •  心在旅途
    2021-01-23 10:23

    Make sure to store the checkmark in your model somewhere. Cells are recreated on the fly as the user scrolls the UITableView. Then make sure to re-set the checkmark correctly in tableView:cellForRowAtIndexPath:.

提交回复
热议问题