UIKeyboardTypeDecimalPad half-width decimal button

I use UIKeyboardTypeDecimalPad in one of my applications, but when running on iOS 8, the semicolon button is limited to half the width.

enter image description here

I tried to create a simple application with only a UITextField and DecimalPad (both in Objective-C and Swift), it shows the same problem. Is this a bug in UIKit? I could not find much information on the Internet, and iOS 8 for quite some time. In iOS 7, the same code displays correctly.

+5
source share
1 answer

This is really annoying oversight by Apple. The only real solution comes from them. Otherwise, use the numeric keypad and add ".". I did this before DecimalPad came out.

+2
source

Source: https://habr.com/ru/post/1206555/


All Articles