Themis Beris
Themis Beris

Reputation: 990

Keyboard Differences Between Simulator and iDevice

I have noticed a weird "bug" ,developing an app for ios7 . Having set keyboard style ,at UITextFields , like this :

MyUITextField.keyboardType = UIKeyboardTypeDecimalPad;

everything seems to be working as expected at simulator.

However, when app is running at every iDevice , the expected dot(.) symbol of keyboard , is replaced by comma . Is it a bug , or something that i didn't pay attention to ? If it isn't a bug , what change should be made ,considering the textfields keyboard type?

Thank you very much!

Upvotes: 0

Views: 172

Answers (1)

rkh
rkh

Reputation: 863

The character on that key is governed by the current locale so it depends on your device's locale. In some locales, a decimal separator is a comma and in others (US) it is a dot...

Try changing the locale on your device.

Upvotes: 1

Related Questions