Questions tagged [inputview]
120 questions
1
vote
2 answers
iOS: UITextField keyboard and inputview appears at wrong position
I am using few UITextFields with different inputviews using Keyboards, Pickerviews etc in my iPad App. Normally inputview should appear from the bottom of the screen but most of the times it appears from above the bottom - about 50 pixels. I have…

Paresh Masani
- 7,474
- 12
- 73
- 139
0
votes
2 answers
Want to align the text from the rightside..(UITextALignmentRight)
I created a keyboard using on UITextView's inputView.
I want to align the text from the UItextAlignmentRight but it's not working as it is not calling the UITextViewDelegate method when using inputView.
Any help will be appreciated.

Khalil Ghaus
- 251
- 1
- 3
- 15
0
votes
0 answers
Can I make an InputView in light mode transparent, like in dark mode?
I'm using a UIPickerView as InputView and in dark mode it has transparency (low alpha?), but in light mode it's just plain grey. Is it possible to make the background transparent in light mode as well?
Setting a backgroundColor for the inputView…

kattsmurf
- 13
- 4
0
votes
2 answers
Dynamically modifying views
I am implementing a custom keyboard in my app. I want the keyboard to be applicable to multiple 'types' of textFields (all numeric, but some that can have negative values vs strictly positive, some whole-numbers vs some decimal values). I want to…

slatfats
- 24
- 5
0
votes
1 answer
How to set textField becomeFirstResponder via selector
I wrote a UITextfield extension to build my own toolbar for custom inputs:
func addToolbar(selector: Selector? = nil) {
let action = selector == nil ? #selector(resignFirstResponder) : selector
let flexibleSpace =…

kuemme01
- 472
- 5
- 19
0
votes
0 answers
iPhoneX inputView wrong heigh
I have a simple ViewController
The problem is the code
print("HEIGHT (keyboardSize.height)") prints Height = 69
Why ?
I have set input view frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 30)
So I expect the heigh would be 30…

Grigory
- 53
- 6
0
votes
1 answer
How to get two inputs from two different input-views?
I am developing a Bixby capsule and I found a problem that I cannot overcome.
I have an action that returns some data based on the weather and user preferences.
My concept are Weather and Preferences.
I've already got data about the weather which…

landrynka
- 11
- 1
0
votes
4 answers
Problem with rotating custom inputView for UITextView
I've written a custom input view that is meant to be used to replace the standard keyboard for a UITextView. If I assign my custom UIView as my UITextView's inputView, it works as expected in both portrait and landscape mode.
The problem occurs…

MusiGenesis
- 74,184
- 40
- 190
- 334
0
votes
0 answers
Picker View Row 1 text color issue - Swift
I have been spending too much time on this. I would greatly appreciate your help.
I have a picker view in my iOS app page and I have the following code to change the color of the text of the selected row. However, for some reasons, the row #1 reacts…

Gilbert Tyler
- 57
- 7
0
votes
2 answers
Understanding inputView and firstResponder: How to create a UITableViewCell which shows a UIDatePicker as Keyboard?
I would like to create a custom UITableViewCell which displays some date and shows a UIDatePicker as keyboard when selected.
While I found several topics dealing with this question they all offer the same solution: Add a UITextField to the cell and…

Andrei Herford
- 17,570
- 19
- 91
- 225
0
votes
1 answer
UITextField placeholder showing up with a shadow behind UITextField.text when setting text programatically. Why?
I'm setting a UITextField placeholder's text using:
textField.placeholder = "placeholder"
Then, as I am using a UIPickerView as my inputView, when a picker view element is selected I update the placeholder by doing textField.placeholder = nil and…

Ronak Vora
- 185
- 3
- 16
0
votes
1 answer
UIViewController's input view automatically opens on first time
I have simple code which is set DatePicker as input view of UIViewController
var datePicker = UIDatePicker()
override var inputView: UIView? {
return datePicker
}
override var canBecomeFirstResponder: Bool {
return true
}
I have to write…

Prashant Tukadiya
- 15,838
- 4
- 62
- 98
0
votes
2 answers
UIsearchBar input Keyboard Type
Does anyone know how to change the input keyboard type for the searchbar? The code
searchController.searchBar.inputView = input
doesn't work like in a text field. I have read that the subview of the searchBar is a textfield but I don't know how to…

Mina Makar
- 51
- 10
0
votes
3 answers
Is it possible to change the default InputView in MonoTouch?
I would like to display a different view than the standard keyboard (a picker control, or a date picker, for example) when a text field becomes first responder (i.e. gets focus). This would be really nice, because currently I'm pushing a custom view…

Mark Carpenter
- 17,445
- 22
- 96
- 149
0
votes
1 answer
Is it possible to set inputView/ inputAccessoryView for textfields in storyboard?
I have picker and toolbar for textfields.
@IBOutlet var picker: UIDatePicker!
@IBOutlet var toolbar: UIToolbar!
@IBOutlet weak var toTF: UITextField!
@IBOutlet weak var fromTF: UITextField!
and then in viewDidLoad…

Zaporozhchenko Oleksandr
- 4,660
- 3
- 26
- 48