I have texFiled I'm my view controller and i set number pad for that like this:
self.phoneTextField.keyboardType = UIKeyboardTypeNumberPad;
And now i want user just can enter english number in text field(can not change language)
(This only applies for iOS 10 or later and for number pad)
Swift
yourTextField.keyboardType = .asciiCapableNumberPad
Objective C
yourTextField.keyboardType = UIKeyboardTypeASCIICapableNumberPad;
NO,we can't disable
or Hidden
the keyboard properties, it is not possible to handle the default property of Keyboardtype
in iOS
, if you want to make it own customization then you go for Custom Keyboard
Concept. else try once with another keyboard Types
Choice 2
in that place you can add one Overlay
for disable , you can get the sample from here.but
If Apple figures out that the key is covered or. disabled they will most likely reject the app.
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