Can you programmatically accept a spelling correction in UITextView?

I just found out that instead of doing this (kills my animations) you can use:

  [messageField reloadInputViews];

Works like a charm.


There isn't any API to interact directly with autocorrect. However, there is a bit of a hack I ran across not long ago: if you resign the responder, the currently displayed autocorrect will be accepted. So, you may be able to get away with resigning the first responder and then assigning it again:

[myTextView resignFirstResponder];
[myTextView becomeFirstResponder];