Swift 3.x
Assuming your hierarchy of textFiled is:
TextField->Cell->TableView
Write this line of code in textFieldDidEndEditing
print(textField.superview?.superview)
if textField.superview?.superview == myTable1 {
}
else if textField.superview?.superview == myTable2 {
}
else {
}