How to stop my Custom Keyboard from 'floating' or being undocked on iPad <p>I have a custom Keyboard that gets displayed for a certain UITextField when I set the textField's inputView to my KeyboardView. The keyboard works fantastically well but it has become apparent that the keyboard will 'float' if the user has previously undocked the built in Apple Keyboard or indeed split it.</p> <p>I have searched for many hours for a way to ensure my custom keyboard does not act like this and instead stays docked to the bottom of the screen regardless as to whether the user has previously undocked the built in Apple Keyboard.</p> <pre><code>self.keyboardInputView = [[[KeyboardInputViewController_iPad alloc] initWithNibName:@"KeyboardInputViewController_iPad" bundle:[NSBundle mainBundle]] autorelease]; self.keyboardInputView.delegate = self; self.keyboardInputView.keyboardTextField = myTextField; myTextField.inputView = self.keyboardInputView.view; [myTextField becomeFirstResponder]; </code></pre>