Advertisement
srk72

Get Text From textField in tableView or CollectionView

Dec 20th, 2022
1,548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.24 KB | None | 0 0
  1.     cell.feesField.tag = indexPath.row
  2.     cell.feesField.addTarget(self, action: #selector(textFieldChanged(field:)), for: .editingChanged)
  3.  
  4.     @objc func textFieldChanged(field: UITextField) {
  5.         feesArray[field.tag] = field.text ?? ""
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement