Wednesday, 18 September 2013

Complete auto-correct upon pressing send

Complete auto-correct upon pressing send

I have a textview that I want to autocorrect the last word when a user
presses send. (similar to the message.app) Currently I am calling resign
firstResponder then immediately calling become firstResponder, in my
didTouchOnSend action.
[composeTextView resignFirstResponder];
[composeTextView becomeFirstResponder];
This method works, but only when I press the send button on the keyboard.
How can I get it to work on the send UIButton I created programmatically?

No comments:

Post a Comment