iphone-softkeyboard

Show a view over the keyboard

不问归期 提交于 2019-11-27 02:31:22
问题 I am looking for a way on the iPhone, due to a custom 'loading' subview, to have a subview cover the keyboard without dismissing the keyboard. Right now when the subview loads, the keyboard is still topmost. Any ideas? 回答1: add your loading view as subview on window. It will cover keyboard too. Here is a stackoverflow post for the same IPhone - Show Wait Indicator UPDATE My code #pragma mark - #pragma mark Waiting View - (void)showWaitingView { CGRect frame = CGRectMake(90, 190, 32, 32);

Dismiss iphone keyboard

自古美人都是妖i 提交于 2019-11-27 01:09:30
I am trying to recreate something similar to the popup keyboard used in safari. I am able to visually reproduce it by placeing a toolbar over my view and the appropriate buttons, however i cant figure out any way to dismiss the keyboard once the user has touched the done button. Have you tried: [viewReceivingKeys resignFirstResponder]; where viewReceivingKeys is the UIView that is receiving the text input? There is a couple of things you need to remember. The number #1 part developers forget to set is the delegate of the textField. If you are using the Interface Builder, you must remember that

Programmatically show soft keyboard on iPhone in a PhoneGap application?

核能气质少年 提交于 2019-11-27 00:11:38
问题 I've been searching far and long, and to this moment, I did not come across a working solution for PhoneGap / Cordova applications that would show soft keyboard programmatically. Scenario: We have a PhoneGap application - a website created in jQuery Mobile - that at one point shows a dialog to the user. This dialog is also a web page and has one single INPUT text box where user should enter a code. Problem: When the code dialog is shown, the input box is focused using JavaScript . However,

Custom iPhone Keyboard

我的梦境 提交于 2019-11-26 20:17:53
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 behavior of text controls so I use my own keyboard easily? Thanks, Vic Here's an idea: modify the

Disable UITextField keyboard?

强颜欢笑 提交于 2019-11-26 20:13:36
I put a numeric keypad in my app for inputing numbers into a text view, but in order to input numbers I have to click on the text view. Once I do so, the regular keyboard comes up, which I don't want. How can I disable the keyboard altogether? Any help is greatly appreciated. The UITextField's inputView property is nil by default, which means the standard keyboard gets displayed. If you assign it a custom input view, or just a dummy view then the keyboard will not appear, but the blinking cursor will still appear: UIView* dummyView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 1, 1)];

how to hide the keyboard when empty area is touched on iphone

会有一股神秘感。 提交于 2019-11-26 15:18:32
问题 normally when you touch the text input area, the keyboard pops up and when you touch the empty area of screen, the keyboard disappeared. How to make that happen? just like what we experienced on iphone safari... Thank you 回答1: Updated way (recommended): - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [self.view endEditing:YES]; } This will end editing on all subviews and resign the first responder. Other way (enumerating over all text views): Here's a step by step for it:

Dismiss iphone keyboard

我只是一个虾纸丫 提交于 2019-11-26 12:26:45
问题 I am trying to recreate something similar to the popup keyboard used in safari. I am able to visually reproduce it by placeing a toolbar over my view and the appropriate buttons, however i cant figure out any way to dismiss the keyboard once the user has touched the done button. 回答1: Have you tried: [viewReceivingKeys resignFirstResponder]; where viewReceivingKeys is the UIView that is receiving the text input? 回答2: There is a couple of things you need to remember. The number #1 part

hiding keyboard ios [duplicate]

非 Y 不嫁゛ 提交于 2019-11-26 10:29:15
问题 This question already has answers here : Dismiss keyboard on touch anywhere outside UITextField (8 answers) Closed 6 years ago . I have a few text inputs and I can hide the keyboard whenever I touch the background, but only when I have been entering into the first text box name textField1. now this code should be simple but I just can\'t seem to get it. -(IBAction)backgroundTouched:(id)sender { [textField1 resignFirstResponder]; [buildLength resignFirstResponder]; [buildWidth

Disable UITextField keyboard?

我们两清 提交于 2019-11-26 07:30:02
问题 I put a numeric keypad in my app for inputing numbers into a text view, but in order to input numbers I have to click on the text view. Once I do so, the regular keyboard comes up, which I don\'t want. How can I disable the keyboard altogether? Any help is greatly appreciated. 回答1: The UITextField's inputView property is nil by default, which means the standard keyboard gets displayed. If you assign it a custom input view, or just a dummy view then the keyboard will not appear, but the

iPhone: Change Keyboard language programmatically

梦想与她 提交于 2019-11-26 01:37:01
I am trying to provide a different language support on my iOS 5.x application whenever native Keyboard is opened. Provide this language in native keyboard programmatically. Could someone guide me how can i support it? I saw a carbon framework, but looks like its for Mac apps. Thanks. Nimit Parekh No this is not possible - user can only change their language in the settings. However you can give the user an "English" keyboard if you choose (or ask them their preference) you do this using: UIKeyboardTypeASCIICapable You can change keyboard directly on the keyboard by pressing "globe icon" on the