Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom iPhone return key text

Is it possible to set custom return key type for UITextField?

[txtField setReturnKeyType:UIReturnKeyDefault];

I want to have the word "SHARE" in place of the return key type.

Thanks

like image 385
Biranchi Avatar asked Oct 26 '09 05:10

Biranchi


1 Answers

Nope. You get the return key and keyboard types defined in the OS. Unless you want to try to hack the keyboard's view hierarchy to change that button, which would be a really bad plan. (Standard recommendation here is to file a bug report with Apple to let them know you'd like more/different options.)

like image 85
Sixten Otto Avatar answered Sep 30 '22 14:09

Sixten Otto