enabling the "return button" in a UITextField keyboard (objective-c/iphone)

Posted by peter61 on Stack Overflow See other posts from Stack Overflow or by peter61
Published on 2010-05-23T03:11:37Z Indexed on 2010/05/23 3:20 UTC
Read the original article Hit count: 250

When I start editing a UITextField, I have the "Clear When Editing Begins" option checked so it starts off with no text. However, the "Return" button is grayed out until you type at least one character.

I've seen other iphone apps where the "Return" button is not grayed out (and if you press it with no text, then it goes back to what the text used to be). How is this done?

Thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c