iphone-softkeyboard

iphone keyboard without textview

末鹿安然 提交于 2020-01-28 04:41:38
问题 is it possible to bring up the keyboard in an iphone app without a textview? or will i have to have an invisible textview? if so, how do you programatically create a textview and then bring up the keyboard (without the user having to tap the textview)? the only examples i can find use interface builder.. 回答1: The only (valid) way to show the keyboard is to have a textfield that is first responder. You can hide it and make it first responder programmatically by calling becomeFirstResponder on

iphone keyboard without textview

主宰稳场 提交于 2020-01-28 04:38:25
问题 is it possible to bring up the keyboard in an iphone app without a textview? or will i have to have an invisible textview? if so, how do you programatically create a textview and then bring up the keyboard (without the user having to tap the textview)? the only examples i can find use interface builder.. 回答1: The only (valid) way to show the keyboard is to have a textfield that is first responder. You can hide it and make it first responder programmatically by calling becomeFirstResponder on

How to switch iPhone keyboard layout?

那年仲夏 提交于 2020-01-24 12:53:48
问题 I have an app which has two different languages (English-German). You can switch within the app between the languages. My question now is, how to switch the keyboard as well? Not just the language but the keyboard layout. Both keyboard language layouts already available within the system, I just don't know how to switch between them. 回答1: Go through the following post, will helpful for you Change Your Keyboard or Display Language in iOS Setting the iPhone keyboard language 来源: https:/

How to hide keyboard - of - UITextView iPhone - by return Key [duplicate]

我怕爱的太早我们不能终老 提交于 2020-01-12 04:49:11
问题 This question already has answers here : How to dismiss keyboard for UITextView with return key? (33 answers) Closed 6 years ago . In a UITextView, when we click on it, A keyboard appears, but when user press return key, (normally creates a new line in textView) keyboard should go down. How? 回答1: Ok i have found the correct answer by the help of @jordan - link help. Implement following code to your view controller .m file & .h file add delegate -(BOOL)textView:(UITextView *)textView

UIMenuController hides the keyboard

心不动则不痛 提交于 2019-12-21 13:22:29
问题 I currently have an application which is for chatting. I used a UItextField for input box and bubbles for display messages, some thing like the system SMS. I want to enable copy paste on the message bubbles (labels). The problem is, when I want to show the UIMenuController, the label which i need to copy from need to become first responder. If the keyboard is currently displayed, when the label become first responder, the textfield will lost focus, thus the keyboard will be hide automatically

UIMenuController hides the keyboard

大憨熊 提交于 2019-12-21 13:21:10
问题 I currently have an application which is for chatting. I used a UItextField for input box and bubbles for display messages, some thing like the system SMS. I want to enable copy paste on the message bubbles (labels). The problem is, when I want to show the UIMenuController, the label which i need to copy from need to become first responder. If the keyboard is currently displayed, when the label become first responder, the textfield will lost focus, thus the keyboard will be hide automatically

Hide keyboard in UIWebView

柔情痞子 提交于 2019-12-20 10:57:58
问题 Is there a way to make a UIWebView dismiss all associated input controls, such as keyboards/pickers? 回答1: Haven't tried it in a web view with a picker, but this definitely works to dismiss the keyboard: [theWebView endEditing:YES]; 回答2: for (UIWindow *keyboardWindow in [[UIApplication sharedApplication] windows]) for (UIView *keyboard in [keyboardWindow subviews]) if([[keyboard description] hasPrefix:@"<UIFormAssistant"] == YES) { [keyboard removeFromSuperview]; } Dirty way but it works ;) 来源

Custom iPhone Keyboard

泄露秘密 提交于 2019-12-17 04:58:11
问题 I need (i.e. a customer requirement) to provide a custom keyboard for the user to type text into both text fields and areas. I already have something that does the keyboard and appends test to a text field, however I'd like to make it more generic and have it act like the standard iphone keyboard, i.e. appear when teh user selects an editable text control. Currently my controller knows the target and the target is uneditable to prevent the standard keyboard. Is there a way to hook into the

Custom Keyboard or to create own keyboard

谁都会走 提交于 2019-12-14 01:59:58
问题 i would like to increase the keyboard key size is that possible? if i need to create my own custom keyboard , i want to increase the keyboard keys size. Please provide me how can i go with implementing this... any tutorials or code sample would be helpful . Thanks for your time and views 回答1: Standard keyboard appears as a window and you cann't change its size. Custom keyboard is just a custom view with backgroundImage and about 30 buttons. I guess you should provide some datasource for this

international keyboard customized?

依然范特西╮ 提交于 2019-12-12 09:27:30
问题 in iphone sdk 3.0 they have given option of international keyboards.user can choose the keyboard that he want. but how can we localize our application. for e.g if user have chosen a French language keyboard we should interact with him in french. like alerts and other things should get display in french language. how can we do this programatically?Is their any option by which we can convert string from english to user's chosen language? kindly help me 回答1: In iOS 4.2 and later, you can use the