How to disable/enable the return key in a UITextField?

Maybe the following code segment helps:

textfield.enablesReturnKeyAutomatically = YES;

This is publicly available in iPhone SDK in UITextInputTraits. Using this, return key will be disabled when no input text is available within text field.

Leave a Comment