Home > OS >  How to simultaneously change textField.text in a prototype cell?
How to simultaneously change textField.text in a prototype cell?

Time:01-31

I have a UITableViewController and a Prototype cell with a UITextField. When I change a textField.text in one of the cells I want it to be changed in all other cells which my tableView now have (for example multiply number by 2 and set to other cell's textField.text output).

This is the behaviour I want to implement: Update all multiple text fields in UITableView Cell when typing UITableViewCell UITextFieldDelegate

Hope this gives you enough to set you on your way.

CodePudding user response:

inside your textFieldDidBeginEditing and textFieldDidChangeSelection delegates, call tableView.reloadData()

  •  Tags:  
  • Related