becomefirstresponder

Show keyboard automatically with focus() event in UIWebView using Trigger.IO/PhoneGap

旧时模样 提交于 2019-12-01 00:18:52
Supposedly, this has not been possible since iOS 6 where you can set the UIWebView's keyboardDisplayRequiresUserAction = NO. I'm using a html 5 webview (Trigger.IO) and building a native plugin but am having difficulty grabbing hold of the UIWebView instance. How do I grab hold of the webview so I can simply do the following: mywebview.keyboardDisplayRequiresUserAction = NO; Probably really simple.. what am I missing? Connorhd Access to the UIWebView isn't something we properly expose in the current version of plugins (but is something we will support soon). For now if you want to try it out

iOS: Disable UITableView animation when keyboard shows up

孤街醉人 提交于 2019-11-29 09:40:03
问题 Everyone wants to move the UITableView when the keyboard pops up, but I'm looking for a way to disable the automatic animation to the cursor when the keyboard pops up. I'm experiencing an odd jerking / jolting / erratic scrolling behavior when the keyboard pops up and causes the UITableView to scroll to the cursor (to avoid blocking it). Each of my UITableView cells has a UITextView in it. I don't commit any other animations when the keyboard pops up. At this point, I would like to disable

_UIButtonBarStackView: breaking constraint when becomeFirstResponder sent

拜拜、爱过 提交于 2019-11-28 07:30:47
When jumping from one textfield to an other, get this: translatesAutoresizingMaskIntoConstraints) ( "<NSAutoresizingMaskLayoutConstraint:0x6040002806e0 UIKeyboardAssistantBar:0x7f986d40d020.height == 0>", "<NSLayoutConstraint:0x60400008ece0 _UIButtonBarStackView:0x7f986d4041c0.top == UIKeyboardAssistantBar:0x7f986d40d020.top>", "<NSLayoutConstraint:0x60400008ed30 UIKeyboardAssistantBar:0x7f986d40d020.bottom == _UIButtonBarStackView:0x7f986d4041c0.bottom>", "<NSLayoutConstraint:0x60400009f220 _UIButtonBarButton:0x7f986d438480.height == UILayoutGuide:0x6040005b5ee0.height>", "<NSLayoutConstraint

_UIButtonBarStackView: breaking constraint when becomeFirstResponder sent

痴心易碎 提交于 2019-11-27 01:50:04
问题 When jumping from one textfield to an other, get this: translatesAutoresizingMaskIntoConstraints) ( "<NSAutoresizingMaskLayoutConstraint:0x6040002806e0 UIKeyboardAssistantBar:0x7f986d40d020.height == 0>", "<NSLayoutConstraint:0x60400008ece0 _UIButtonBarStackView:0x7f986d4041c0.top == UIKeyboardAssistantBar:0x7f986d40d020.top>", "<NSLayoutConstraint:0x60400008ed30 UIKeyboardAssistantBar:0x7f986d40d020.bottom == _UIButtonBarStackView:0x7f986d4041c0.bottom>", "<NSLayoutConstraint:0x60400009f220

Keeping object on top of keyboard in the event of becomeFirstResponder or resignFirstResponder?

淺唱寂寞╮ 提交于 2019-11-26 21:47:34
I currently have a UITextField on top of a keyboard. When you tap it, it should stick on top of the keyboard and move up smoothly. I don't know the exact duration and animation type of the keyboard, so it's really bumpy. Here's what I have: [theTextView resignFirstResponder]; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDelegate:self]; [UIView setAnimationDuration:0.25]; [UIView setAnimationCurve:UIViewAnimationCurveLinear]; // Frame changes go here (move down 216px) [UIView commitAnimations]; [theTextView becomeFirstResponder]; [UIView beginAnimations:nil context:NULL];

Keeping object on top of keyboard in the event of becomeFirstResponder or resignFirstResponder?

泄露秘密 提交于 2019-11-26 08:05:10
问题 I currently have a UITextField on top of a keyboard. When you tap it, it should stick on top of the keyboard and move up smoothly. I don\'t know the exact duration and animation type of the keyboard, so it\'s really bumpy. Here\'s what I have: [theTextView resignFirstResponder]; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDelegate:self]; [UIView setAnimationDuration:0.25]; [UIView setAnimationCurve:UIViewAnimationCurveLinear]; // Frame changes go here (move down 216px)