Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Go button on iPhone keyboard

Can any one please let me know how to disable the 'Go' button on keyboard?

The purpose is: when the text field is empty Go button has to be disable (gray color) and when type some thing the Go button become active and color blue. (Same as Apple Find iPhone app).

Many thanks

like image 941
Chinthaka Avatar asked Jun 01 '11 18:06

Chinthaka


People also ask

How do I get my iPhone keyboard back to normal?

Go to Settings > Accessibility > Keyboards, tap Full Keyboard Access, then turn on Full Keyboard Access.


1 Answers

In Interface builder, tick the box which is labelled Auto-enable Return Key.

In code do: [textField setEnablesReturnKeyAutomatically:YES];

The Return key (Go key) will only be enabled when the text field is not empty.

like image 127
Jonathan. Avatar answered Oct 29 '22 04:10

Jonathan.