I am on the 3rd rewrite for the class with my TableView. I got to the point where I use textFieldDidEndEditing to collect the data of the textField.text and store it in an array from the UITextFields, as the user clicks on to a new TextField.
The problem is once the user finishes editing the last TextField and presses return on the keyboard, the next delegate method that is called is textFieldShouldReturn:and not textFieldDidEndEditing to gather the last piece of data I need to process.
But after the textFieldShouldReturn: finishes it then returns to the textFieldDidEndEditing delegate method and collects the last textFields data. I would think it would try to do the textFieldDidEndEditing by default?
So I thought, fine. I will send it a message to collect the data from the last textField with this line of code [self textFieldDidEndEditing
UITextField *) textField]; from within the method textFieldShouldReturn.
Now I have a 3 textFields so I can process the data. But it still automatically heads back that method by default when textFieldShouldReturn: method ends. So now it collects the data twice from that textField.
Is there a way to cancel the automatic call for that method after the textFieldShouldReturn: finishes?
The problem is once the user finishes editing the last TextField and presses return on the keyboard, the next delegate method that is called is textFieldShouldReturn:and not textFieldDidEndEditing to gather the last piece of data I need to process.
But after the textFieldShouldReturn: finishes it then returns to the textFieldDidEndEditing delegate method and collects the last textFields data. I would think it would try to do the textFieldDidEndEditing by default?
So I thought, fine. I will send it a message to collect the data from the last textField with this line of code [self textFieldDidEndEditing
Now I have a 3 textFields so I can process the data. But it still automatically heads back that method by default when textFieldShouldReturn: method ends. So now it collects the data twice from that textField.
Is there a way to cancel the automatic call for that method after the textFieldShouldReturn: finishes?