romeodz
romeodz

Reputation: 31

Keyboard language selection doesn't show with UITextField

So i'm facing a weird behavior for my iOS app where the keyboard attached to some UITextFields does show the option to switch to another language whereas for other it doesn't as shown in the following pictures.

Image with language selection option: enter image description here

Image without language selection option: enter image description here

Even though they have the same code basically Any help would be much appreciated.

Upvotes: 3

Views: 698

Answers (2)

Hudi Ilfeld
Hudi Ilfeld

Reputation: 2055

In my case I had to set Application language tab inside xcscheme to System Language instead of English.

This is how it looks like:

first I opened edit schemes

enter image description here

and then i set Application Language to System Language:

enter image description here

Upvotes: 0

OMGHaveFun
OMGHaveFun

Reputation: 838

Look closely at UIKeyboardType:

In your code : self.textField.keyboardType = UIKeyboardTypeASCIICapable; change to self.textField.keyboardType = UIKeyboardTypeDefault;

or In Storyboard:

enter image description here

Upvotes: 1

Related Questions