I have a table view. There is a custom table view cell on the table view. TableViewCell
has a label and a text field. There is a button on the view controller outside the table view. On click of that button I want to remove the text of all textfields in the table view. I am trying the following code:
- (IBAction)clear:(id)sender {
detail.textfield.text=@"";
}
Only the last cell's textfield.text
gets cleared. Kindly give some suggestions to achieve the required thing correctly.