uikeyinput

How to know which key is pressed on UIKeyboard in ios? [closed]

允我心安 提交于 2019-12-20 06:21:30
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am implementing a iPad application. In my application I need to know which key is pressed in the keyborad. Can you guys please help me is there any way to find it? Thank you, Sekhar. 回答1: This is a vague

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.

Xcode UI Test UIKeyInput typeText

你说的曾经没有我的故事 提交于 2019-12-07 04:13:56
问题 During Xcode UI Testing, how do I insertText for a UIView that conforms to UIKeyInput ? I created a CodeInputView that conforms to UIKeyInput . When I record myself manually entering a code, Xcode writes app.typeText("1234"). But, when I try to play that back, I get the error UI Testing Failure - Neither element nor any descendant has keyboard focus. And, none of the solutions to that question has worked. 回答1: I've found solution for UIKeyInput. Please, use: app.keys["1"].tap() app.keys["2"]

How do I detect the return key being pressed and respond to it using the UIKeyInput protocol?

[亡魂溺海] 提交于 2019-12-06 07:52:32
问题 I have a table view that displays a list that I want the user to be able to edit. In order to save space, and to make my view easier on the eyes, I have created a custom toolbar that conforms to the UIKeyInput protocol so that I can pull up a keyboard without having to use any text fields. So far so good. I have a mutable string that is handling the input from the keyboard: - (void)insertText:(NSString *)text { if (!itemForList) { itemForList = [NSMutableString string]; } [itemForList

Xcode UI Test UIKeyInput typeText

房东的猫 提交于 2019-12-05 08:44:30
During Xcode UI Testing, how do I insertText for a UIView that conforms to UIKeyInput ? I created a CodeInputView that conforms to UIKeyInput . When I record myself manually entering a code, Xcode writes app.typeText("1234") . But, when I try to play that back, I get the error UI Testing Failure - Neither element nor any descendant has keyboard focus . And, none of the solutions to that question has worked. I've found solution for UIKeyInput. Please, use: app.keys["1"].tap() app.keys["2"].tap() app.keys["3"].tap() app.keys["4"].tap() // Instead of app.typeText("1234") The CodeInputView needs

how to make a keyboard in other language in iOS

夙愿已清 提交于 2019-12-02 02:34:24
I want to create a khmer keyboard which is different from iPhone keyboard. How can I do that ? 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. make a customize keyboard. take a UIView add UIButton and add what you want to all in this view. Starting from iOS 4, UITextField and UITextView have a property called inputView. It should be a view able to

How to detect delete key on an UITextField in iOS 8?

本小妞迷上赌 提交于 2019-11-27 03:34:25
I have subclassed UITextField and implemented the UIKeyInput protocol's deleteBackward method to detect backspace being pressed. This works fine on iOS 7 but not on iOS 8. deleteBackward is not called on the UITextField anymore when I press the backspace key. I've checked the documentation and the release notes and nothing points to the reason why this could happen. Any pointers? iVader You must look an example for MBContactPicker on github. Deletion of contacts at MBContactPicker via Backspace button on iOS8 tested by me. And it works greatly! You can use its as example. Author of

How to detect delete key on an UITextField in iOS 8?

∥☆過路亽.° 提交于 2019-11-26 22:14:49
问题 I have subclassed UITextField and implemented the UIKeyInput protocol's deleteBackward method to detect backspace being pressed. This works fine on iOS 7 but not on iOS 8. deleteBackward is not called on the UITextField anymore when I press the backspace key. I've checked the documentation and the release notes and nothing points to the reason why this could happen. Any pointers? 回答1: You must look an example for MBContactPicker on github. Deletion of contacts at MBContactPicker via Backspace