EW
Size: a a a
EW
A
A
B
EW
A
A
МЕ
EW

EW
A
AB
AB
МЕ
МЕ
AB
class MyTextFieldCell: UITableViewCell {
var textField: UITextField!
var textDidChange: ((String?) -> Void)?
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)configureUI()
}
required init?(coder: NSCoder) {
super.init(coder: coder)configureUI()
}
func configureUI() {
textField.addTarget(self,
action: #selector#selector(didChangeText(_:)),
for: .valueChanged)
}
@objc func didChangeText(_ sender: UITextField) {
textDidChange?(sender.text)
}
}AB
AB
МЕ
DJ