UIKeyBoard Return Button UIReturnKeyDone

13,550

Solution 1

The Return key only turns blue if it has a type other than UIReturnKeyDefault and is enabled. To make sure it gets enabled, you can set textfield.enablesReturnKeyAutomatically = YES.

Solution 2

textfield.returnKeyType = UIReturnKeyGo;

Solution 3

I'm not entirely certain you can, and if you can I think that you might need to either roll your own keyboard or use undocumented methods. Alternatively, you could draw your own view over the button and simply make it transparent to user touches. This article might help you.

Share:
13,550
Dave
Author by

Dave

Updated on June 04, 2022

Comments

  • Dave
    Dave almost 2 years
    textfield.returnKeyTYpe = UIReturnKeyDone
    

    So the above makes my Return button on the keyboard to say Done. I have seen Apps with Blue color button on the UIKeyBoard. Is that simple enough to do? How do I change the background color of the Return key?

  • Dave
    Dave about 14 years
    ok i tried that didn't work. the blue button i have seen is on iPhone apps. is it different for iPad? I am using SDK 3.2 Beta 5.
  • Tom
    Tom about 14 years
    I'm not sure that the iPad highlights the Return key in the same way.
  • nonickname
    nonickname almost 4 years
    for me not work. last version of iOS and Xcode. (type = .next)