views:

1064

answers:

3
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?

A: 

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.

saramah
What up, Sarah! I thought I recognized that quarter-of-a-face.
Tom
Oh shizz! Hey Tom :D /forwardtofacebook
saramah
A: 

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.

Tom
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.
Dave
I'm not sure that the iPad highlights the Return key in the same way.
Tom
A: 
textfield.returnKeyType = UIReturnKeyGo;
Boom