Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting the iPhone keyboard language

I'd like the iPhone virtual keyboard to appear pre-set to a particular language (Russian for example) when the user taps a UITextField. Is there a way to do this in Cocoa code?

like image 552
Peter Avatar asked Dec 01 '08 11:12

Peter


2 Answers

This is a user defined setting and can not be messed with by the programmer, unfortunately.

like image 199
adam Avatar answered Sep 27 '22 22:09

adam


There is no problem in 3.1+. I set this for 3.0:

self.searchBar.keyboardType = UIKeyboardTypeURL;

and language switch button is appeared.

like image 20
slatvick Avatar answered Sep 27 '22 22:09

slatvick