uikeyboard

UIScrollViewKeyboardDismissModeInteractive changing tableview height with keyboard

怎甘沉沦 提交于 2019-12-21 17:47:00
问题 Within a UIViewController I've set self.tableView.keyboardDismissMode = UIScrollViewKeyboardDismissModeInteractive . This is great because the user can drag the keyboard down from the tableview. However, the tableview maintains it's current height when dragging down the keyboard. This looks odd because it leaves empty space between the keyboard and the scrollview. How can I persistently track the frame of the keyboard so I may resize the tableview as the user drags the keyboard? I've tried

How to open the view with the keyboard appearing when the view is already loaded?

浪子不回头ぞ 提交于 2019-12-21 17:02:11
问题 I have a requirement where I have a textfield in a view. When I want to open the view by switching the tab (TabBased Application), first time when the view is loaded the keyboard appears because i loadview method is called. But when I switch to tab2 and again switch to tab1 again, load view is not called. I want the keyboard to appear every time I open the tab1 page. 回答1: Use -viewWillAppear: in your view controller to send your text field a -becomeFirstResponder message, e.g.: - (void)

UIKeyboard Suggestions height for iOS 8 notification?

时光毁灭记忆、已成空白 提交于 2019-12-21 12:29:53
问题 I'm trying to keep a text field sitting atop the keyboard in iOS 8. But when a user swipes up or down the top of the keyboard to show or dismiss iOS 8 word suggestions, I need to a notification of the new height of the keyboard so I can move my text field up or down by that height. How can I accomplish this? Thanks! 回答1: You can register for UIKeyboardDidShowNotification and then get the keyboard frame from the notification with UIKeyboardFrameEndUserInfoKey. [[NSNotificationCenter

keyboard size given by NSNotificationCenter

老子叫甜甜 提交于 2019-12-21 04:37:14
问题 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

How to show button ‘Done’ on number pad on iPhone OS 4? [duplicate]

拥有回忆 提交于 2019-12-20 08:35:02
问题 This question already has answers here : How to show “Done” button on iPhone number pad (20 answers) Closed 6 years ago . I'd like to add a Done button to the iPhone number pad keyboard. There's even a handy space at the bottom left for just such a button. Previously, I was using a similar trick to those described in Question 584538 and Luzian Scherrer's excellent blog post, but that stopped working in iOS 4. I can do it by creating a custom inputView, but I'd prefer to extend Apple's

iOS - How can I preload the keyboard?

萝らか妹 提交于 2019-12-20 08:29:59
问题 The Problem In most iPhone apps, there's a quite a bit of delay the first time that the keyboard is presented (presumably creating the keyboard takes quite a bit of oomph, even on an iPhone 4). Most people seem ok with this. I'm not, it really bugs me - and the way my app is presented, users will be very confused that nothing happens for a few seconds when they tap on a text field for the first time. What I've Tried Googling it brings up one solution - unfortunately this is invalid as of iOS

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

Detect if UIKeyBoard is Showing [duplicate]

拟墨画扇 提交于 2019-12-20 03:34:11
问题 This question already has answers here : How can I programmatically check whether a keyboard is present in iOS app? (20 answers) Closed 6 years ago . I'd like to detect whether or not the keyboard is showing. I've found a few other posts that traverse the subviews of UIWindow to find the keyboard, but if that is the only way then I'll figure out something else. I suppose I could also observe the UIKeyboard notifications, but I'm guessing there is a cleaner solution out there. 回答1: I am not

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 can I create UIKeyboard with done button on top right corner?

无人久伴 提交于 2019-12-20 02:26:27
问题 I need to show UIKeyboard with done button on top right corner ..please look into attached image..any help would be appreciated. 回答1: This might help you. please check it out BSKeyboardControls 回答2: Create a UIToolbar keep two bar buttons in that. Initially Hide that toolbar. Show the toolbar on the textfield didBeginEditing delegate of textfield and hide the toolbar in didEndEditing delegate of textfield EDIT: As prashant said BSKeyboard offers what i said. See the look and feel of it here