Questions tagged [inputview]
120 questions
2
votes
1 answer
'UIViewControllerHierarchyInconsistency' thrown when using a UIViewController's view as UITextField's inputView
I spent the day trying to figure out a crash on my app related with a textfield's inputView. I've tried making a test project to reproduce the crash. Here's what I have :
class ViewController: UIViewController {
let keyboardVC =…

BastienPenalba
- 158
- 2
- 10
2
votes
0 answers
Crash when calling reloadInputViews after adding custom input view
Our app uses a custom input view, added as a subview to an instance of UIInputView. We're receiving crash reports after adding this view to our UITextView's inputView property and then calling [textView reloadInputViews], but I can't reproduce the…

Antipex
- 141
- 1
- 9
2
votes
3 answers
How to remove the gray layer under inputView swift
I'm trying to leave the background of my Inputview transparent but I only get it gray.
The code is:
let fakeField : UITextField = UITextField(frame: CGRect.zero)
//1
InputViewCollection = InputView(frame: CGRect(x: 0, y: 0, width: 0,…

corocraft
- 150
- 3
- 13
2
votes
0 answers
Changing the inputview property of a UITextView to nil leades tp app crash
I am trying to reopen system keyboard on dismissing date picker.
I have written code as:
[self.textView resignFirstResponder];
if ([self.textView.inputView isEqual:self.datePicker]) {
//Display the keyboard
self.textView.inputView =…

Reena
- 41
- 6
2
votes
3 answers
ios swift datepicker done button, wrong date with interval
I have set up a date picker as input view of a textfield. Date picker has a minimum date and interval minute of 15. Now it gives proper date on changing the spin in value changed delegate. But if I don't spin the picker and tap done button with…

Sanjay Pandey
- 21
- 1
- 4
2
votes
0 answers
Custom Input view from Storyboard? - Swift
A few months back there was a question posted regarding a custom input view, it was answered by David Berry
The answer works perfectly but I've been trying to get the same to work with a storyboard rather then a nib.
What is the equivalent code to…

BlueRad
- 109
- 2
- 13
2
votes
0 answers
What happens to the Bottom Layout Guide when an InputView is displayed (i.e. keyboard)
So everyone loves this new Layout semantics in storyboard, it's dynamic in a way it adapts at runtime when we're inside a UINavigationController for example.
Now what about inputViews? I know inputViews are NOT part of my view, but wouldn't it make…

Pedro Borges
- 1,568
- 1
- 14
- 25
2
votes
5 answers
UITextField inputView is not working in Swift
I am trying to set inputView & inputAccessoryView for UITextField. But, as I start tap on textField only inputAccessoryView is come from bottom.
Following is my code:
@IBOutlet weak var pickerView: UIPickerView!
@IBOutlet weak var textField:…

OnkarK
- 3,745
- 2
- 26
- 33
2
votes
2 answers
Why does my plain UITableView section footer float above my input's accessory view in iOS 7?
I'm using storyboards to create a static UITableView with one section that has a header and a footer. Each tableview cell has a UITextField whose inputView is set to a UIPicker and the accessory view is a UIToolbar.
This works great except the…

Steve Moser
- 7,647
- 5
- 55
- 94
2
votes
1 answer
Can you anchor a view in place? (or is there some other work around to preventing a view from being shoved by a UIDateTimePicker?) (iOS)
I added a UIDatePicker programmatically, and I set it as the inputView and inputAccessoryView of a UITextField so that the date picker pops up instead of the keyboard when selecting the text field.
The date picker pops up; however, the only problem…

giant91
- 1,153
- 2
- 9
- 18
2
votes
2 answers
How to use one UIDatePicker for multiple UITextFields?
In my viewDidLoad I have the following Code:
UIDatePicker* datePicker = [[UIDatePicker alloc] init];
datePicker.datePickerMode = UIDatePickerModeDate;
[datePicker addTarget:self action:@selector(datePickerChanged:)…

Mark_ObjC
- 42
- 6
2
votes
1 answer
Trouble with the UITextField inputview property pulling up a custom UIPickerView
I have been having trouble pulling up a custom UIPickerView from the textfield's inputview property. I have been working on this for awhile, did some research, and tried to put together a separate project based on Apple's UICatalog example.…

Alan
- 37
- 1
- 4
1
vote
2 answers
Why won't UIPickerView resize the first time I change device orientation on its parent viewController?
I have a navigation-based app and say my root controller A causes a viewController B to be pushed, which has a UITableView with a few cells with UITextFields.
The first 2 UITextFields have each, as their inputView, a UIDatePicker and a UIPickerView,…

SaldaVonSchwartz
- 3,769
- 2
- 41
- 78
1
vote
1 answer
Using InputView property on iOS
I have developed a custom keyboard with a view and a view controller. In my application's main view controller, I hold a property for the custom keyboard view controller.
I have a textView which should get input from the custom keyboard. The…

William Lemon
- 11
- 2
1
vote
1 answer
UITextField max inputview height
In my app I'm using an UIView as my inputView for a UITextField. The UIView height is 252.
The problem is that when the textfield becomes first responder only the top 216 pixels are shown.
Is there a max height for UITextField inputView?

user1078065
- 412
- 1
- 5
- 19