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.
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]
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With