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.
Author by
Dave
Updated on June 04, 2022Comments
-
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 about 14 yearsok 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 about 14 yearsI'm not sure that the iPad highlights the Return key in the same way.
-
nonickname almost 4 yearsfor me not work. last version of iOS and Xcode. (type = .next)