My view has two UITextFieldsand UISwitch. If the user edits textField, and then immediately touches the switch (without pressing return), the text remains in the form in which it was entered, without AutoCorrect.
If I know which one textFieldthey fit into, I can make the auto-correction finish by calling [textField resignFirstResponder]. But the user can type text textField, so I don’t know which one to call.
How can I get around this? Is there any way to detect which one was textFieldused? Or something simpler that I did not think about?
source
share