Execute current UITextField autocorrect suggestion when another button is pressed

Posted by Allara on Stack Overflow See other posts from Stack Overflow or by Allara
Published on 2011-01-06T03:42:57Z Indexed on 2011/01/06 3:54 UTC
Read the original article Hit count: 217

Filed under:
|
|

I am implementing chat in my application, very similar to the iPhone's built-in Messages app. I have a UITextField next to a button. The user types something into the text field, and very often the text field suggests various autocorrections. In the built-in Messages app, tapping the Send button will cause the currently visible autocorrection suggestion to execute. I am seeking this behavior in my application, but haven't been able to find anything.

Does anyone know of a way to programmatically execute the currently visible autocorrection/autocomplete suggestion of a UITextField when a completely separate control is activated? It's obviously possible somehow.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ios