My user enters text in UITextField , then press a UIBarButtonItem to confirm.
UITextField
UIBarButtonItem
If there is an auto-correct suggestion when the user clicks UIBarButtonItem , it is not accepted. How can I accept it programmatically?
Try to call:
[textfield resignFirstResponder];
in the text box when the user clicks the button.