uikeyboard

UIKeyboardDidShowNotification called multiple times, and sometimes with incorrect keyboard dimensions

爱⌒轻易说出口 提交于 2019-12-03 16:14:12
问题 I am trying to move a UITextView above the keyboard whenever the keyboard appears/changes. Let's say I have the English keyboard displaying and then switch directly to the Chinese keyboard (which is taller than the standard English keyboard). In this scenario my text view always appears too high (to the naked eye, it looks like the text view is incorrectly offset by the size of the Chinese keyboard "input accessory view". I'd post an image but lack the reputation to do so :) ). I am adjusting

iOS5 - sharekit for twitter issue

爷,独闯天下 提交于 2019-12-03 14:53:28
问题 I am facing keyboard issue in sharekit for iOS5 only.While posting text content to twitter. .I have attached the screenshot for the screen in which I am facing the issues 1.Cancel button is not working 2.Keyboard is not disappearing. If any one has fixed the issue please help me. 回答1: Edit: Fix Issue #254 - IOS 5 Cancel Button Fix for issue https://github.com/ideashower/ShareKit/issues/254. In iOS 5, a modally presented view controller has a nil parentViewController, and instead the presenter

keyboard size given by NSNotificationCenter

余生长醉 提交于 2019-12-03 13:52:00
I want to add a accessoryView on a keyboard called from a UISearchBar. Since UISearchBar does not implement this property, I've just created a toolBar. Following Apple's documentation on the matter, I've decided to use notification center not only to know when the keyboard is called but also to know the size of the keyboard, which changes depending on the orientation. I've followed the example on the documentation and, on the keyboardWasShown method, I call an animation which will show the toolBar on top of the keyboard. Something like this: -(void)keyboardWasShown:(NSNotification*

How to detect user is mid-way inputting with an Input Method?

泄露秘密 提交于 2019-12-03 10:20:39
问题 If user is inputting in a UITextView using an Input Method such as Chinese Pinyin, there is a state where the Pinyin is already displayed in tne text view but user is still yet to choose the final Chinese characters. A screenshot will be much more clear: I want to do some text completion for user, but should only do it for the real input(the Chinese characters user chooses) but not for the intermediate Pinyin input. So I need to detect this pending state. 回答1: Finally got it. Input methods

UIKeyboardDidShowNotification called multiple times, and sometimes with incorrect keyboard dimensions

可紊 提交于 2019-12-03 06:18:43
I am trying to move a UITextView above the keyboard whenever the keyboard appears/changes. Let's say I have the English keyboard displaying and then switch directly to the Chinese keyboard (which is taller than the standard English keyboard). In this scenario my text view always appears too high (to the naked eye, it looks like the text view is incorrectly offset by the size of the Chinese keyboard "input accessory view". I'd post an image but lack the reputation to do so :) ). I am adjusting my text view position when my app receives a UIKeyboardDidShowNotification (using

It is possible to show keyboard without using UITextField and UITextView iphone app?

送分小仙女□ 提交于 2019-12-03 04:45:51
问题 I am working in iPhone messaging based app. I want to show keyboard with keyboard inputAccessoryView in keyboard without using UITextView and UITextField . It is possible to do this? Please any one help me on this. Thanks in advance. Looking forward your help. Thanks. EDIT: Because i don't want the UITextField / UITextView and the control to be in UITextView / UITextField . I am going to add inputAccessoryView on the keyboard is UITextView . when the user touches the UITextview in the

iOS5 - sharekit for twitter issue

孤人 提交于 2019-12-03 03:52:57
I am facing keyboard issue in sharekit for iOS5 only.While posting text content to twitter. .I have attached the screenshot for the screen in which I am facing the issues 1.Cancel button is not working 2.Keyboard is not disappearing. If any one has fixed the issue please help me. Edit: Fix Issue #254 - IOS 5 Cancel Button Fix for issue https://github.com/ideashower/ShareKit/issues/254 . In iOS 5, a modally presented view controller has a nil parentViewController, and instead the presenter is presentingViewController. Changed the attempts to dismiss the view using the parentViewController to

UITextView resign first responder on 'Done'

て烟熏妆下的殇ゞ 提交于 2019-12-03 02:27:52
I have been searching around the web for about an hour now, and cannot find any code to help me with this. I have a UITextView that I need to resign first responder of when the user presses the 'Done' button on their keyboard. I have seen code floating around the internet like this: -(BOOL) textFieldShouldReturn:(UITextField *)textField { [textField resignFirstResponder]; return NO; } But that will not work for a UITextView . Simply put, How can I tell when the user presses the done button on the keyboard? Jhaliya Implement the shouldChangeTextInRange: delegate method. Use below approach and

It is possible to show keyboard without using UITextField and UITextView iphone app?

心不动则不痛 提交于 2019-12-02 17:57:55
I am working in iPhone messaging based app. I want to show keyboard with keyboard inputAccessoryView in keyboard without using UITextView and UITextField . It is possible to do this? Please any one help me on this. Thanks in advance. Looking forward your help. Thanks. EDIT: Because i don't want the UITextField / UITextView and the control to be in UITextView / UITextField . I am going to add inputAccessoryView on the keyboard is UITextView . when the user touches the UITextview in the keyboard inputView the actual process will be continue. For anyone, who wants to show keyboard without

QuickType Bar on the Keyboard

核能气质少年 提交于 2019-12-02 17:48:54
问题 As you all might be knowing about the new Quick Type bar on the keyboard. In my application , I have put a custom TextView bar on the keyboard. But because of QuickType Bar , my textview gets hidden. I want to know , Is there any property or method to know whether the QuickType Bar is open or not ? 回答1: There is nothing which can tell you whether the QuickType bar is active or not but you can register for the UIKeyboardWillChangeFrameNotification notification with this code and with that you