inputaccessoryview

inputAccessoryView with custom view hide After I Dismiss keyboard

烈酒焚心 提交于 2021-02-08 11:58:23
问题 First of all , my project is so structured: -home page with a tableView to add element -floating Button: when clicked make appear keyboard with above a custom view (and inside a textView) to digit input Now, I have a problem with inputAccessoryView and dismiss keyboard: I have used inputAccessoryView to move a custom view above the keyboard like this: MytextView.inputAccessoryView= MyContainerView; And this work correctly. My problem occur when I dismiss keyboard using: [MytextView

Modifying keyboard toolbar / accessory view with WKWebView

和自甴很熟 提交于 2020-01-22 14:42:30
问题 I'm using a WKWebView with a content-editable div as the core of a rich-text editor, and would like to modify the top toolbar above the keyboard—the one that contains the autocorrect suggestions and formatting buttons. (Not sure if this counts as an input accessory view or not). I've found a few posts showing how to remove the bar, but none of them seems to work, and ideally I'd like to keep the autocorrect part anyway. At least one app, Ulysses, does this (though I don't know if it's with a

Animate the height of inputAccessoryView Swift

a 夏天 提交于 2020-01-14 03:06:12
问题 Hello I' trying to change the height of a button set as inputAccessoryView once I click on it. Unfortunately it seems only to change the position but not the height. Can Anyone help me out? Below my code. Thank you! import UIKit class ViewController: UIViewController, UITextFieldDelegate { @IBOutlet var textField: UITextField! var SendButton: UIButton = UIButton.buttonWithType(UIButtonType.Custom) as UIButton override func viewDidLoad() { super.viewDidLoad() SendButton.frame = CGRectMake(0, 0

Animate the height of inputAccessoryView Swift

瘦欲@ 提交于 2020-01-14 03:06:06
问题 Hello I' trying to change the height of a button set as inputAccessoryView once I click on it. Unfortunately it seems only to change the position but not the height. Can Anyone help me out? Below my code. Thank you! import UIKit class ViewController: UIViewController, UITextFieldDelegate { @IBOutlet var textField: UITextField! var SendButton: UIButton = UIButton.buttonWithType(UIButtonType.Custom) as UIButton override func viewDidLoad() { super.viewDidLoad() SendButton.frame = CGRectMake(0, 0

Leaving inputAccessoryView visible after keyboard is dismissed iOS8?

天涯浪子 提交于 2020-01-11 09:25:12
问题 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 the same thing in new iOS8 sdk , i get error: 'UIViewControllerHierarchyInconsistency', reason: 'child view controller:<UICompatibilityInputViewController: 0x7fdcb3441b10> should have parent view controller:

Leaving inputAccessoryView visible after keyboard is dismissed iOS8?

纵然是瞬间 提交于 2020-01-11 09:25:02
问题 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 the same thing in new iOS8 sdk , i get error: 'UIViewControllerHierarchyInconsistency', reason: 'child view controller:<UICompatibilityInputViewController: 0x7fdcb3441b10> should have parent view controller:

Slide UIInputView with UIViewController like Slack

旧巷老猫 提交于 2020-01-07 03:07:28
问题 I'd like to use the UIViewController's input accessory view like this: override func canBecomeFirstResponder() -> Bool { return true } override var inputAccessoryView: UIView! { return self.bar } but the issue is that I have a drawer like view and when I slide the view open, the input view stays on the window. How can I keep the input view on the center view like Slack does it. Where my input view stays at the bottom, taking up the full screen (the red is the input view in the image below):

UISplitViewController detail-only inputAccessoryView

人盡茶涼 提交于 2020-01-02 03:36:08
问题 I am trying to imitate Apple's iMessage application in terms of the message input toolbar. Apple has a UIToolbar which is the input accessory view of a UITextView it contains, and also the inputAccessoryView of the actual view. That way, the toolbar is always present, and when the keyboard appears, it slides with the keyboard. On the iPad, they seem to have a UISplitViewController , and the toolbar is part of the detail view controller. Now, when I have the same set up, my detail view's input