Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

highlight the 'return' button on the iOS keyboard

I am trying to find a way to highlight the return button on the standard ios keyboard, but i do not find any documentation.

Does anybody know how to do that?

Thank very much for answers.

like image 487
reinvdo Avatar asked Oct 09 '22 00:10

reinvdo


1 Answers

The return button cannot be highlighted, the highlighted state exists for different values of UIReturnKeyType:

typedef enum {
    UIReturnKeyDefault,
    UIReturnKeyGo,
    UIReturnKeyGoogle,
    UIReturnKeyJoin,
    UIReturnKeyNext,
    UIReturnKeyRoute,
    UIReturnKeySearch,
    UIReturnKeySend,
    UIReturnKeyYahoo,
    UIReturnKeyDone,
    UIReturnKeyEmergencyCall,
} UIReturnKeyType;

The blue highlight appears on all of these except for UIReturnKeyDefault (which incidentally is the one that says "Return").

You can set the UIReturnKeyType on any text input control that conforms to UITextInputTraits (e.g. UITextField, UITextView) [id <UITextInputTraits> returnKeyType].

like image 126
Ell Neal Avatar answered Oct 13 '22 09:10

Ell Neal