Table Cell SubView Iteration Not Finding TextField

前端 未结 4 463
面向向阳花
面向向阳花 2021-01-17 07:03

I\'ve created a table where each cell holds both a text label and a text field. I\'m adding the textfields as such [cell addSubview:passwordField]; and from a v

4条回答
  •  醉话见心
    2021-01-17 07:28

    Why not have a datasource mapped to the TableView and just retrieve / update the values in the datasource. You can then call reloadRowsAtIndexPaths to load just the row you just changed. Trying to iterate through the TableView rather than just updating the datasource seems very inefficient.

提交回复
热议问题