uikeyboard

How to present keyboard inside popover?, ipad passcode lock style

孤街醉人 提交于 2019-12-30 10:18:10
问题 Is it posible to present a keyboard the way is shown when you set a passcode for your ipad? 回答1: Unfortunately no, But what i did to replicate this was, built a bunch of buttons like a keyboard inside my passcode view using interface builder. Then linked each button to a command that would change the text field. - (IBAction) button9_clicked:(id) sender{ if ([self textField:theTextField shouldChangeCharactersInRange:range replacementString:@"9"]){ self.theTextField.text=[self.theTextField.text

How to present keyboard inside popover?, ipad passcode lock style

无人久伴 提交于 2019-12-30 10:18:07
问题 Is it posible to present a keyboard the way is shown when you set a passcode for your ipad? 回答1: Unfortunately no, But what i did to replicate this was, built a bunch of buttons like a keyboard inside my passcode view using interface builder. Then linked each button to a command that would change the text field. - (IBAction) button9_clicked:(id) sender{ if ([self textField:theTextField shouldChangeCharactersInRange:range replacementString:@"9"]){ self.theTextField.text=[self.theTextField.text

Is there a change to the behaviour of UIKeyboardWillShowNotification in iOS 8?

落爺英雄遲暮 提交于 2019-12-30 07:29:49
问题 I have had a simple UIView block animation that handles animating a group of text fields into view when the keyboard will show (and animate them back when the keyboard hides). This has worked fine in iOS 6 & 7, but now I'm getting incorrect behavior, and it all points to some change in UIKeyboardWillShowNotification . I set up an isolated project to test this further on a single text field, with two buttons that call exactly the same methods that are fired for the keyboard's WillShow and

How do I replicate the iOS keyboard appearance?

不想你离开。 提交于 2019-12-30 05:20:05
问题 I have made a custom number pad keypad for my iOS app, but want it to more closely mirror the appearance of the standard keyboard. I am looking for advice on how to make a standard UIButton look and act like the standard keyboard buttons. Specifically, I need to figure out the following for the iPad and would like to do as much as possible in an xib or storyboard. The size of the buttons The color of the keyboard background (or even better, how can I determine this myself?) The background

How to detect UIKeyboard “backspace” button touch on UITextField? [duplicate]

假装没事ソ 提交于 2019-12-28 04:01:09
问题 This question already has answers here : Detect backspace in empty UITextField (26 answers) Closed 6 years ago . How can i detect backspace button pressed on UIKeyboard ? thanks EDIT : Is there any keyboard delegate that returns key pressed value? 回答1: if the UITextField is empty, the shouldChangeTextInRange delegate method is not called You can subclass UITextField and override this method: -(void)deleteBackward; { [super deleteBackward]; NSLog(@"BackSpace Detected"); } since UITextField is

UIKeyboardBoundsUserInfoKey is deprecated, what to use instead?

点点圈 提交于 2019-12-28 03:17:26
问题 I'm working on an iPad app using 3.2 sdk. I'm dealing with obtaining the keyboard size to prevent my textfields from hidding behind it. I'm getting a Warning in Xcode -> UIKeyboardBoundsUserInfoKey is deprecated what should I use instead not to get this warning? 回答1: I played with the previously offered solution but still had issues. Here's what I came up with instead: - (void)keyboardWillShow:(NSNotification *)aNotification { [self moveTextViewForKeyboard:aNotification up:YES]; } - (void

Show numeric keyboard without letters

╄→гoц情女王★ 提交于 2019-12-25 09:27:08
问题 Is there any option to hide letters under the numbers in the iOS default numeric keyboard? For some phone languages the keyboard is shown without letters: 回答1: I'm sorry, what you are asking is impossible. It depends on the keyboard Language and only the user can change the keyboard language. I hope this will help you. 来源: https://stackoverflow.com/questions/41938594/show-numeric-keyboard-without-letters

How do I stop a tableView from scrolling when the keyboard appears? [duplicate]

大兔子大兔子 提交于 2019-12-23 11:58:34
问题 This question already has answers here : Disabling automatic scrolling of UITableView when editing UITextField inside UITableViewCell (8 answers) Closed 10 months ago . I have a UITableViewController that each contains cells with a UITextView positioned at the top of each cell. Naturally when an interaction with the textBox begins, the keyboard will appear and at the same time the entire table will also scroll up along as the keyboard appears causing the textBox to go out of view. Because I

Swift: Scroll View only when a TextField or Button is hidden by the Keyboard

筅森魡賤 提交于 2019-12-23 04:33:40
问题 Below is the code that I'm trying to use to have the view scroll only when the focused textField or UIButton is hidden by the keyboard: import UIKit class ViewController: UIViewController, UITextFieldDelegate { @IBOutlet weak var buttonToBottomConstraint: NSLayoutConstraint! @IBOutlet weak var textFieldUsername: UITextField! @IBOutlet weak var textFieldPassword: UITextField! @IBOutlet weak var scrollView: UIScrollView! override func viewDidLoad() { super.viewDidLoad() NSNotificationCenter

IQKeyboardManager not disabling

浪子不回头ぞ 提交于 2019-12-22 10:50:01
问题 Trying to disable IQKeyboardManager for a particular ViewController or for the whole app, it's not working. My AppDelegate code: [[IQKeyboardManager sharedManager] setEnableAutoToolbar:NO]; [[IQKeyboardManager sharedManager] setEnable:NO]; [[IQKeyboardManager sharedManager] disableToolbarInViewControllerClass:[TCChatViewController class]]; [[IQKeyboardManager sharedManager] disableInViewControllerClass:[TCChatViewController class]]; Also trying to disable in viewWillAppear: : [