I have a textField
on custom cell in a tableView
. When one of the cell
is selected I am able to disable textField
for that particular cell
by using set selected method.
(void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
if (selected) {
self.accountNameTxtField.enabled = NO;
} else {
self.accountNameTxtField.enabled = YES;
}
}
The requirement is to disable textField
for other cells when any one of the cell
is selected. Please guide me on this, Thanks.