Swift tableview changes the value of a random cell when one cell is edited

前端 未结 2 1869
我在风中等你
我在风中等你 2021-01-28 15:10

I have a long list of textfields so I am using a tableView.

this is how the screen looks like

When I insert some text in a textfield in one of the cells and scro

2条回答
  •  有刺的猬
    2021-01-28 15:57

    Basically, you have to get and store the values in view-controller because due to the reusable behavior of UITableViewCell you lost the reference of the invisible cell with all the child reference.

    So you can store the text-field value by the textViewDidChange action in RelatieToevoegenCell class.

提交回复
热议问题