我正在使用KeyboardType = UIKeyboardTypeDecimalPad和在某些手机上你看到左下角的","而不是".".这取决于手机的语言设置!随着"." 版本一切正常,当我使用[NSNumber numberWithFloat:[textField.text floatValue]]但是使用","版本时它表示2.0为2.5.有人知道解决方法吗?
KeyboardType = UIKeyboardTypeDecimalPad
iphone nsnumber nsstring ios
ios ×1
iphone ×1
nsnumber ×1
nsstring ×1