I'm trying reload all cells when variable was changed.
Problem was appearing only in bottom cell of tableView. TableView scrolling unexpected way (it was scrolling top and bottom)
Problem was appearing only in bottom cell of tableView. TableView scrolling unexpected way (it was scrolling top and bottom)
Code Block func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { guard let cell = tableView.cellForRow(at: indexPath) as? ConverterTableViewCell, let code = cell.currency.text else { return } cell.priceText.text = "0" convertCurrencyForCode(with: code) cell.priceText.delegate = self cell.priceText.addTarget(self, action: #selector(textChanged(_:)), for: .editingChanged) cell.priceText.addTarget(self, action: #selector(onTextFieldTap), for: .touchDown) writedNumber = 0 tableView.reloadData() cell.priceText.becomeFirstResponder() selected = indexPath.row } @IBAction func textChanged(_ textField: UITextField) { if let text = textField.text { writedNumber = Double(textField.text!) tableView.reloadData() } }