uikeyboardtype

Show numeric keyboard without letters

╄→гoц情女王★ 提交于 2019-12-25 09:27:08
问题 Is there any option to hide letters under the numbers in the iOS default numeric keyboard? For some phone languages the keyboard is shown without letters: 回答1: I'm sorry, what you are asking is impossible. It depends on the keyboard Language and only the user can change the keyboard language. I hope this will help you. 来源: https://stackoverflow.com/questions/41938594/show-numeric-keyboard-without-letters

how to make a keyboard in other language in iOS

风流意气都作罢 提交于 2019-12-20 02:57:21
问题 I want to create a khmer keyboard which is different from iPhone keyboard. How can I do that ? 回答1: Unfortunately, you cannot control the language of the keyboard. The user chooses which keyboards they would like available via the settings application and can toggle between them using the globe icon on the keyboard. When the keyboard is opened it will open to the most recently used keyboard. 回答2: make a customize keyboard. take a UIView add UIButton and add what you want to all in this view.

how to use spanish ,french ,chinese ,german keyboard in app

六眼飞鱼酱① 提交于 2019-12-12 03:14:51
问题 i want to have different language (spanish,german,french,chinese and so on) keyboard in my app. How can i use different language keyboard in my app. thank you 回答1: Unfortunately, you cannot control the language of the keyboard. The user chooses which keyboards they would like available via the settings application and can toggle between them using the globe icon on the keyboard(PFA Image).When the keyboard is opened it will open to the most recently used keyboard. ). 回答2: It‘s up to your

Dismiss a UIKeyboardTypeNumberPad in a UITextField when VoiceOver is active?

柔情痞子 提交于 2019-12-11 11:10:09
问题 How do I dismiss a UITextField with keyboard type UIKeyboardTypeNumberPad ? The accepted answer to this question suggests to either add a bar with a dismiss button as an inputAccessoryView or to listen to touch events on the background. I prefer the second approach, i.e. listen to touch events on the view containing the UITextField . However, this approach fails if VoiceOver is active. How do you resignFirstResponder in that situation? 回答1: You need an alternative way to perform the gesture.

Is there any notification that gets sent when the Keyboard changes (like from NumberPad to Default)

南笙酒味 提交于 2019-12-10 11:25:19
问题 I am trying to figure out how I can get notified when the keyboard changes. What I am trying to do is add a DONE button to keyboard of type 4 & 5 (NumberPad and PhonePad), everything is working fine, except when I transition from a TextField using a Default KB type, The notification that the KeyboardDidAppear isn't being fired. Here is what I got: - (void)viewDidLoad { [super viewDidLoad]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidShow:) name

Programmatically changing keyboard type on iOS does nothing

落花浮王杯 提交于 2019-12-10 00:40:39
问题 I want to change keyboard type from default to numeric after user pressed return button. However after setting keyboardType property nothing happens. My code: -(BOOL)textFieldShouldReturn:(UITextField *)textField { [textField setKeyboardType:UIKeyboardTypeNumbersAndPunctuation]; return YES; } I have set myself as text field delegate and the method is being called after pressing return button. EDIT: Solved by -(BOOL)textFieldShouldReturn:(UITextField *)textField { [textField setKeyboardType

iOS: How to get the current visible keyboard type?

半城伤御伤魂 提交于 2019-12-08 08:15:02
问题 How do I find out if the keyboard is of type numeric, Twitter, email, etc...? edit: Is there a way to detect keyboard type without using an outlet? 回答1: Consider that you have tow textFields in the ViewController, You will need to implement textFieldShouldBeginEditing method from UITextFieldDelegate protocol, as follows: class ViewController: UIViewController, UITextFieldDelegate { @IBOutlet weak var tfEmail: UITextField! @IBOutlet weak var tfPassword: UITextField! func

iOS: How to get the current visible keyboard type?

99封情书 提交于 2019-12-07 18:02:26
How do I find out if the keyboard is of type numeric, Twitter, email, etc...? edit: Is there a way to detect keyboard type without using an outlet? Ahmad F Consider that you have tow textFields in the ViewController, You will need to implement textFieldShouldBeginEditing method from UITextFieldDelegate protocol, as follows: class ViewController: UIViewController, UITextFieldDelegate { @IBOutlet weak var tfEmail: UITextField! @IBOutlet weak var tfPassword: UITextField! func textFieldDidBeginEditing(_ textField: UITextField) { if textField.keyboardType == .emailAddress { // this is the tfEmail!