Skip to main content

You can get cell textFiealdtextField data anywhere where your tableViewtableView is declared just use the following code, You need give just INDEXPATH

let indexPath = IndexPath(row: yourRow, section: yourSection) let cell:InputDataCell = yourTable.cellForRow(at: indexPath) as! InputDataCell  if (cell.yourTextFieald.text?.characters.count)!  {      print(cell.yourTextFieald.text!) } 

You can get cell textFieald data anywhere where your tableView is declared just use the following code, You need give just INDEXPATH

let indexPath = IndexPath(row: yourRow, section: yourSection) let cell:InputDataCell = yourTable.cellForRow(at: indexPath) as! InputDataCell  if (cell.yourTextFieald.text?.characters.count)!  {      print(cell.yourTextFieald.text!) } 

You can get cell textField data anywhere where your tableView is declared just use the following code

let indexPath = IndexPath(row: yourRow, section: yourSection) let cell:InputDataCell = yourTable.cellForRow(at: indexPath) as! InputDataCell if (cell.yourTextFieald.text?.characters.count)! { print(cell.yourTextFieald.text!) } 
Source Link
Jaydeep Vyas
  • 4.5k
  • 1
  • 22
  • 44

You can get cell textFieald data anywhere where your tableView is declared just use the following code, You need give just INDEXPATH

let indexPath = IndexPath(row: yourRow, section: yourSection) let cell:InputDataCell = yourTable.cellForRow(at: indexPath) as! InputDataCell if (cell.yourTextFieald.text?.characters.count)! { print(cell.yourTextFieald.text!) }