Hi, I want change the 'return' key of iphone virtual key to a another name such as 'Go'. Help me please.
+5
A:
There's a property
@property(nonatomic) UIReturnKeyType returnKeyType;
defined in the UITextInputTraits
protocol.
So what you probably want to do is:
UITextField *myTextField; // your textfield..
myTextField.returnKeyType = UIReturnKeyGo;
For other possible values see UIReturnKeyType
:
typedef enum {
UIReturnKeyDefault,
UIReturnKeyGo,
UIReturnKeyGoogle,
UIReturnKeyJoin,
UIReturnKeyNext,
UIReturnKeyRoute,
UIReturnKeySearch,
UIReturnKeySend,
UIReturnKeyYahoo,
UIReturnKeyDone,
UIReturnKeyEmergencyCall,
} UIReturnKeyType;
stigi
2010-05-20 09:04:14
Thats cool! But, Is their any way to add completely customized name such as "Open"?
shakthi
2010-05-24 06:07:36
stigi
2010-05-24 08:45:10
Its ok. I am not going to break anything.
shakthi
2010-05-24 09:09:23