Questions tagged [inputaccessoryview]

Extra buttons (or other controls) beyond the ones provided by the default iPhone keyboard interface. Those buttons are in the area above the keyboard, created for specific operations such as moving to the next or previous text field, make the keyboard disappear e.t.c.

213 questions
29
votes
9 answers

Changing the frame of an inputAccessoryView in iOS 8

Long time lurker - first time poster! I am having an issue while recreating a bar with a UITextView like WhatsApp does it. I am using a custom UIView subclass, and lazily instantiating it on: - (UIView *)inputAccessoryView and returning YES on: -…
Manuel Menzella
  • 417
  • 1
  • 4
  • 9
28
votes
16 answers

iPhone X how to handle View Controller inputAccessoryView?

I have a messaging app that has the typical UI design of a text field at the bottom of a full screen table view. I am setting that text field to be the view controller's inputAccessoryView and calling ViewController.becomeFirstResponder() in order…
LOP_Luke
  • 3,150
  • 3
  • 22
  • 25
19
votes
8 answers

Custom Keyboard InputAccessoryView not visible in iOS 11

I have implemented Custom input accessory view it was working fine till iOS 10.3.1. But it's not visible in iOS 11 beta. Have anyone experience this issue?
Ruchi
  • 204
  • 1
  • 2
  • 8
19
votes
2 answers

how can i increase the height of an inputAccessoryView

I have spent several days on this with no solution in sight. I have an inputAccessoryView which consists of a UIView containing a textView and two buttons. The behaviour of the inputAccessoryView is as expected and works fine in all cases except…
19
votes
6 answers

Change height of inputAccessoryView issue

When I change the height of inputAccessoryView in iOS 8, the inputAccessoryView not go to the right origin, but covers the keyboard. Here are some code snippets: in table view controller - (UIView *)inputAccessoryView { if (!_commentInputView)…
Yijun
  • 433
  • 1
  • 3
  • 9
18
votes
3 answers

Layout Constraint Errors with simple UIToolar for keyboard inputAccessoryView

I was getting a lot of layout constraint errors so I created a new project and simply have a UIToolbar and a UITextField to try and troubleshoot the problem. Even with a clean project, I still get strange errors even though I'm not overriding any…
Anthony
  • 720
  • 1
  • 6
  • 24
15
votes
5 answers

Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency',

I created a toolbar above the picker with two buttons and worked on ios7, when i run in ios8 crash: Terminating app two to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'child view controller: Should Have parent view…
Marco Giraudo
  • 153
  • 1
  • 1
  • 5
14
votes
0 answers

custom inputAccessoryView as UIView from nib giving error: returned 0 width, assuming UIViewNoIntrinsicMetric

I am using an inputAccessoryView which is loaded from a nib using the following UIView subclass: class CustomInputAccessoryView: UIView { @IBOutlet var containerView: UIView! @IBOutlet var contentView: UIView! @IBOutlet weak var…
alionthego
  • 8,508
  • 9
  • 52
  • 125
12
votes
1 answer

How to get inputAccessoryView to anchor above the UITabBar?

I'm trying to figure out the best way to have a custom inputAccessoryView rest on top of a tab bar. Currently, I have an inputAccessoryView that rests at the very bottom of the screen, but it covers the tab bar. Any one know the best practice for…
CatLord
  • 361
  • 1
  • 4
  • 14
10
votes
3 answers

Resize inputAccessoryView dynamically in iOS 8

Basically I am trying to create a resizing UITextView within a inputAccessoryView property. I have a viewController with the method canBecomeFirstResponder returning true and a view I instantiate via a custom class (which gets it from a XIB). Within…
Wesley
  • 2,190
  • 17
  • 26
9
votes
0 answers

How to detect keyboard height without input accessory view?

I have a keyboard with a custom accessory view. I can get its height by registering for keyboardWillShowNotification notification: NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillShowNotification(notification:)), name:…
Milan Nosáľ
  • 19,169
  • 4
  • 55
  • 90
9
votes
0 answers

Input Accessory View hides when showing alert

I use input accessory view for my viewController to dock the view at the bottom of the screen and stick with the keyboard. All works fine, except that when an alert is shown, the input accessory view gets hidden. It is revealed again on dismissing…
GoGreen
  • 2,251
  • 1
  • 17
  • 29
9
votes
0 answers

Capture iOS done button click. Using javascript/Jquery

On iOS browser forms, an accessory bar is shown with Done button and next/prev buttons to move between fields. I would like to capture the Done button click event on the accessory Bar and perform some custom action. JQuery/ JQuery mobile solutions…
Nishanth
  • 1,801
  • 21
  • 25
8
votes
2 answers

Modifying keyboard toolbar / accessory view with WKWebView

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…
Dave Feldman
  • 104
  • 1
  • 9
  • 28
8
votes
4 answers

inputAccessoryView animating down when alertController (actionSheet) presented

I have an inputAccessoryView for a chat app that always remains visible and docked at the bottom of the screen for text input similar to most messaging apps. When I present an alertController with actionSheet style, the inputAccessoryView animates…
alionthego
  • 8,508
  • 9
  • 52
  • 125
1
2 3
14 15