uikeyboard

Bringing up a UIPickerview rather than keyboard input iOS

你。 提交于 2019-12-13 12:24:33
问题 Basically I would like to have the user click in the text field and it bring up a populated pickerview rather than a keyboard. This would also need a toolbar with a done button as well Im presuming. I currently have the field set as an output and action and not much more. I also have an actionsheet in code being used for when the user submits something as well if that makes any difference to possibly using an actionsheet for this as well. I tried researching this topic but 99% of the topics

UIButton iOS 7 following UIKeyboard animation

风格不统一 提交于 2019-12-13 08:51:50
问题 I would like to animate a UIButton which is at the bottom of my UIView when the keyboard becomes/resigns first responder. Before iOS 7 I made a simple animation that moves the button, but now the animation of the keyboard is non linear, it starts faster and ends more slowly. I've been told to do it with the new UIKit Dynamics but don't have any idea of how can I achieve my goal. Any suggestion? Thanks in advance. 回答1: Listen to keyboard notifications. There you can obtain the following

UITextView top margin

▼魔方 西西 提交于 2019-12-12 08:05:40
问题 I'm using a textview and noticed that iOS 7 leaves a top margin by default. See image in the following I read different posts in which the most common solution is to use: [textViewTest setContentInset:UIEdgeInsetsMake(<#CGFloat top#>, <#CGFloat left#>, <#CGFloat bottom#>, <#CGFloat right#>)]; But those insets are just a custom solution for a particular device, textview, font size, and so on. Therefore, there are no specific insets applicable to any solution... even worst, I would have to

Custom iOS keyboard repositioned by undocked system keyboard

南笙酒味 提交于 2019-12-12 06:28:43
问题 Is it possible to prevent a custom keyboard from being repositioned by undocking a system keyboard? If not, is it possible to add support for moving and docking to a custom keyboard? Thanks, alex 回答1: Undocking by longPress then move is a default gesture of iPad keyboard (default and custom) if undocking setting is on. With custom keyboard, this gesture assign to right lower conner of keyboard. Check when undock keyboard from this and resign or modify you custom keys. 来源: https:/

UITableView doesn't shift when moving from textField to textField directly

帅比萌擦擦* 提交于 2019-12-12 03:27:58
问题 I'm currently battling with the keyboard covering some textField issue on my Swift based iPhone app. This image shows the primary problem (top three images show the problem, bottom three are what it should be doing): When the textField in the tableViewCell is edited I want to move the whole tableview and navigation bar up. I can do this with the code below (snippets taken from the viewController): var tableViewShiftedUp = false ... func tableView(tableView: UITableView, cellForRowAtIndexPath

how to use spanish ,french ,chinese ,german keyboard in app

六眼飞鱼酱① 提交于 2019-12-12 03:14:51
问题 i want to have different language (spanish,german,french,chinese and so on) keyboard in my app. How can i use different language keyboard in my app. thank you 回答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(PFA Image).When the keyboard is opened it will open to the most recently used keyboard. ). 回答2: It‘s up to your

UIKeyboardFrameBeginUserInfoKey/UIKeyboardFrameEndUserInfoKey: what is the difference?

隐身守侯 提交于 2019-12-11 17:47:47
问题 It is possible to read the following in the apple Documentation: UIKeyboardFrameBeginUserInfoKey The key for an NSValue object containing a CGRect that identifies the start frame of the keyboard …… UIKeyboardFrameEndUserInfoKey The key for an NSValue object containing a CGRect that identifies the end frame of the keyboard …… Would that mean that the keyboard has a "start frame" and an "end frame"? I suppose YES. But when the keyboard appears I cannot see any frame changing. It just stays the

Autolayout issue with keyboard & UI element heights

限于喜欢 提交于 2019-12-11 14:59:57
问题 Swift 5, Xcode 10 The layout of my UIViewController : I use this code to push the Server Text Field up when the keyboard is opened. At first it pushed the bottom UIStackView into the top one, so I added the Server Stack View.top >= Username Stack View.bottom + 20 constraint and now it's keeping a proper distance. BUT now it also automatically decreases the height of the Server Text Field when it's pushed up. Giving the Server Stack View a fixed height of 60.5 smushes the "Login" button, so I

Custome keyboard show pop up image cut off

自古美人都是妖i 提交于 2019-12-11 12:44:49
问题 I am working in custom keyboard app. When long press in my emojis it's not open in above textField. it's display in bellow iMessage keyboard. see below screen shot. it's possible to add my image open in above textField.like iOS default emojis. if it's possible then give me solution, Thanks. 来源: https://stackoverflow.com/questions/37524059/custome-keyboard-show-pop-up-image-cut-off

Move screen up when keyboard appears in iPhone X

时间秒杀一切 提交于 2019-12-11 12:30:00
问题 I use code below to move screen up and down when keyboard show and hide override func viewDidLoad() { super.viewDidLoad() NotificationCenter.default.addObserver(self, selector:#selector(ViewController.keyboardWillShow), name: NSNotification.Name.UIKeyboardWillShow, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(ViewController.keyboardWillHide), name: NSNotification.Name.UIKeyboardWillHide, object: nil) } @objc func keyboardWillShow(notification: NSNotification)