FAQ Database Discussion Community


iOS, Keyboard Predictive bar visibility

ios,uikit,uitextview,uikeyboard
I have some instance of UITextView and I want this textView to occupy all empty vertical space when keyboard is shown. The problem is that I do not know what height will keyboard take as it has predictive bar in iOS 8 and its actual height can be changed by...

UIKeyboard Suggestions height for iOS 8 notification?

ios,ios8,uikeyboard
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...

Get keyboard size on iOS 8 not working with external keyboard

ios,swift,ios8,keyboard,uikeyboard
Been looking at several SO post now, but none seem to help me. Just want a UITableViews bottom constraint to be set so that the keyboard never is on top of the tableview. Seems impossible in iOS 8. It work when using normal soft keyboard, but when removing it in...

Sliding the keyboard to the left in iOS

ios,objective-c,uikeyboard
I'm wondering if there is a way to slide the first-responder keyboard to the left or to the right when the user press a button. http://cl.ly/image/143K3t403d1m/1.png I make the button as a keyboard-accessory view. When it's tapped the keyboard should slide to the left displaying another custom inputs panel. Any...

iOS: Get top of keyboard point in iPad modal view?

ios,ipad,frame,modalviewcontroller,uikeyboard
I need to adjust a 'message bar' when the keyboard is shown and am having issues when using iPad modal view controller. The 'message bar' should sit right on top of the keyboard when it is shown, and then at the bottom of the modal when the keyboard is hidden...

TextView inside ScrollView stick to keyboard

ios,swift,uiscrollview,uitextview,uikeyboard
I have a UIScrollView and content inside it. Inside content there is a UITextView. When user presses the UITextView I want the UITextView stick to the keyboard. In the image: Whole thing is UIScrollView Bottom black area is the visible screen Red area is content Blue area is UITextView Green...

Leaving inputAccessoryView visible after keyboard is dismissed iOS8?

ios8,uikeyboard,inputaccessoryview
I want to make behavior like messaging app. I have been browsing Stack Overflow for solutions for this, and indeed there are plenty: Leaving inputAccessoryView visible after keyboard is dismissed This was the one that I found. But it seems things are a little different in iOS8. If I do...

How to hide keyboard without animation (or speed up this animation)

ios,swift,animation,keyboard,uikeyboard
I have in my app Navigation Controller and Tool Bar. In Tool Bar is Bar Item which through action "show detail" shows Table View Controller. When I click on cancel and this Table View is closed, but keyboard waits until Table View Controller is completely closed. I'd like to close...

How to ignore all UIControl Taps, when using the tap to close UIKeyboard

ios,swift,uibutton,uikeyboard
This issue is stemming from my previous question dismiss keyboard on tapping on any UIControl object. So when user has a keyboard present, I want the user to be able to tap anywhere outside of keyboard or UITextView to close keyboard. This works...But I also want that "first" tap that...

View set as inputAccessoryView throws exception when added back into normal view

ios,ios8,uikeyboard,inputaccessoryview
I have a text view, some decorations etc. in a view and I want that view to dock on keyboard, just like any other messaging app. When I'm about to display my text view, here is how I attach my view to the keyboard: -(BOOL)textViewShouldBeginEditing:(UITextView *)textView{ UIView *inputView = self.textInputView;...

UIKeyboardWillShowNotification call does not animate UIToolbar

ios,uitoolbar,uikeyboard,uianimation
I have a UIToolbar with a textfield which should move up when the keyboard is shown. In my viewWillAppear, I register my observer: NSNotificationCenter.defaultCenter().addObserver(self, selector: "keyboardWillShow:", name: UIKeyboardWillShowNotification, object: nil) (viewWillDisappear removes my observer) And the function: func keyboardWillShow(notification: NSNotification) { println("will show") let userInfo = notification.userInfo! let keyboardFrame =...

How to change UIWebView keyboard toolBar in iOS 7?

ios,objective-c,iphone,uiwebview,uikeyboard
UIWebviewkeyboard contains next,previous buttons like (<,>). I need to add a custom toolBar forUIWebView KeyBoard toolbar. Please advise me. I customised in iOS 8 but it is not working for iOS 7. - (void) addCustomToolBarForWebViewKeyBoardToolBar { UIWindow *keyboardWindow = nil; for (UIWindow *testWindow in [[UIApplication sharedApplication] windows]) { if (![[testWindow...

dismiss keyboard on tapping on any UIControl objects

ios,swift,uikeyboard,resignfirstresponder
I have multiple keyboard provoking elements...UITextField, UITextView and UISearchBar. I would like to dismiss UIKeyboard upon touch anywhere except keyboard and currently active "text editing" element. I've implemented override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) { searchBar.resignFirstResponder() name.resignFirstResponder() //UITextField notes.resignFirstResponder() //UITextView self.view.endEditing(true) } This works if user taps on an...

How to implement a fully functional backspace key in custom keyboard button swift

swift,uitextfield,uikeyboard
How do you implement a custom backspace/delete button for a custom keyboard in iOS that responds to a UITextField delegate in swift?

Move toolbar with keyboard when tableView.keyboardDismissMode is set to .Interactive

ios,uitableview,swift,uikeyboard
I have a messaging view, with a toolbar like in the messages app. I am using AutoLayout and have a constraint from this toolbar.bottom to bottomlayoutguide.bottom, where I change the constant to notification.userInfo[UIKeyboardFrameEndUserInfoKey] with a notification of UIKeyboardWillShowNotification. In this view I have a tableView, where I have set the...

Keyboard autocorrection height (with/without the autocorrection)

ios,iphone,uitextfield,uitextview,uikeyboard
I get the keyboard height like this: - (void)keyboardNotification:(NSNotification*)notification { NSDictionary* keyboardInfo = [notification userInfo]; NSValue* keyboardFrameBegin = [keyboardInfo valueForKey:UIKeyboardFrameEndUserInfoKey]; CGRect keyboardFrameBeginRect = [keyboardFrameBegin CGRectValue]; } Now, I have the keyboard height. But without the autocorrection height: If the UITextAutocorrectionType is YES / NO the keyboard height stay the same....

“Jumping” to the Numbers on a keyboard?

swift,uitextfield,uikeyboard
I have a text field where you usually type in numbers. But, the user has to click the numbers button on the keyboard to get to the numbers screen. Is there a way to jump right to the screen on a keyboard with the numbers are available to type? Any...

Is it possible that the keyboard opens up automatically as soon as the view appears?

ios,swift,uisearchbar,uikeyboard
I have two view controllers,the 1st IC has a button. when I press on the button the 2nd IC get push on the view. The 2nd IC has a search bar. Question: Is it possible that the keyboard opens up automatically as soon as the 2nd interface controller gets pushed...

Move UIView when Keyboard appears with AutoLayout

ios,objective-c,autolayout,uikeyboard
I got an UIView which I'd like to move up/down whether the UIKeyboard appears or disappears. Unfortunately I can't get it to work. Prior to AutoLayout it was a no-brainer but since AutoLayout I have some trouble with this one. Here is what I have so far: - (void)viewDidLoad {...