Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIKeyboardTypeDecimalPad decimal button capped at half width

I use the UIKeyboardTypeDecimalPad in one of my apps, but when running on iOS 8 the comma button is capped at half width.

enter image description here

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.

like image 828
Simon Avatar asked Nov 01 '22 14:11

Simon


1 Answers

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.

like image 92
David Hartmann Avatar answered Nov 08 '22 05:11

David Hartmann