I use the UIKeyboardTypeDecimalPad
in one of my apps, but when running on iOS 8 the comma button is capped at half width.
I tried creating a simple app with only a UITextField
and the DecimalPad
keyboard (in both Objective-C and Swift), it exhibits the same issue. Is this a bug in UIKit? I have not been able to find much information online, and iOS 8 has been out quite a while now. In iOS 7 the same code displays correctly.
This is a really annoying oversight from Apple. The only real solution will come from them. Otherwise use the number pad and add the '.'. I did that before the DecimalPad came out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With