Questions tagged [inputview]

120 questions
18
votes
1 answer

How to stop my Custom Keyboard from 'floating' or being undocked on iPad

I have a custom Keyboard that gets displayed for a certain UITextField when I set the textField's inputView to my KeyboardView. The keyboard works fantastically well but it has become apparent that the keyboard will 'float' if the user has…
Ollie
  • 301
  • 2
  • 11
17
votes
5 answers

Prevent custom keyboard in textfield

I was experimenting with how a custom keyboard affects my app. I installed Swype on my iPhone 6. I find that in some of my views where I have custom inputView property set on a text field, the Swype keyboard is overriding and presenting instead of…
Dean Davids
  • 4,174
  • 2
  • 30
  • 44
16
votes
3 answers

UITextField inputView displays undo, redo, paste buttons

I have created a custom inputView for my UITextField. The view itself looks and functions great, but on the iPad I'm getting undo, redo, and paste buttons above my custom inputView. How do I remove those buttons? They don't have any functionality,…
Mike Walker
  • 2,944
  • 8
  • 30
  • 62
16
votes
6 answers

Prevent editing of text in UITextField and hide cursor/caret/magnifying glass while using an inputView

How do I prevent the editing of text in a UITextField along with hiding the cursor/caret/magnifying glass, but still present the keyboard, as I am using an inputView with a UIPickerView/UIDatePickerView? Setting userInteractionEnabled to NO does not…
Josh Bernfeld
  • 4,246
  • 2
  • 32
  • 35
15
votes
4 answers

How do I activate an inputView using a UIButton in Swift?

I am attempting to have a UIDatePicker come up as a keyboard when the user hits a UIButton. I was able to get it to work with a textfield, but I don't like how the cursor is visible and the user could enter in any text if they had an external…
Chase
  • 453
  • 1
  • 5
  • 15
15
votes
4 answers

How do I retrieve keystrokes from a custom keyboard on an iOS app?

I need to build a custom keyboard for my iPhone app. Previous questions and answers on the topic have focused on the visual elements of a custom keyboard, but I'm trying to understand how to retrieve the keystrokes from this keyboard. Apple provides…
Greg Young
  • 543
  • 1
  • 6
  • 11
13
votes
2 answers

Custom inputView for UITextField , how do I direct input back to the text field?

I have set a custom inputView to my UITextField. I need a way to display the data selected in my custom inputView in the UITextfield. I would like to achieve this the same way the system keyboard does it. Does anyone know how this is done? How does…
Darren Findlay
  • 2,533
  • 2
  • 29
  • 46
12
votes
5 answers

Custom Keyboard: inputView: how to change the Keyboard size?

I implemented the textfield with a custom keyboard with the "setInputView" function. But i have a problem: my keyboard frame is not a standard iphone keybord frame. The question is: How can i change the size of my custom keyboard? I know some…
Paoloandrea
  • 121
  • 1
  • 1
  • 5
10
votes
3 answers

How to show keyboard after used inputView

I used inputView to show uipickerview for my textfield, but I use same textfield for other functions. How can I show standard keyboard after I used inputView for that textfield? textfield.inputView = pickrView;
Pavel Kaljunen
  • 1,291
  • 2
  • 26
  • 53
9
votes
3 answers

Changing the inputview property of a UITextView from a custom view to nil leads to a crash

I believe I've come across a bug in iOS 7. When a UITextView is contained in a modal view, having its inputview property changed from a custom view to nil (in order to bring back the system keyboard) will cause the app to crash after the modal view…
HajBakri
  • 91
  • 2
  • 2
8
votes
6 answers

UItextView arabic text aligned to right

Using my custom arabic keyboard on UItextView inputView, I m filling my textView with the arabic text but cannot get the written text align to right....Need help to align text to right. -(BOOL)textViewShouldBeginEditing:(UITextView *)textView{ …
Khalil Ghaus
  • 251
  • 1
  • 3
  • 15
8
votes
2 answers

Swap out a custom inputView for the standard keyboard in iOS

I have a custom inputView for a particular textfield, and it works well. However, I cannot discern how to dismiss the view and get the regular keyboard back. (I have a SWAP button right next to the TextField.) I tried setting the textfield's…
Craig Smith
  • 1,063
  • 2
  • 11
  • 21
8
votes
1 answer

Keep a hardware (bluetooth) keyboard from overriding an inputView in iOS 8

I have a UITextField that uses a custom UIPickerView in its inputView to restrict the user to a few options, functioning analogous to a dropdown list. When used with a hardware keyboard connected via bluetooth, the hardware keyboard overrides (and…
Maple
  • 741
  • 13
  • 28
7
votes
4 answers

iOS - Dismiss UIDatePicker presented as inputView

I have a text field in my UI that when it's selected presents a UIDatePicker instead of the default keyboard, how could I set up a button as to dismiss the picker when the user is done?
8vius
  • 5,786
  • 14
  • 74
  • 136
7
votes
2 answers

iOS UITextField- dismissing custom inputView

I am using a custom inputView for some textfield, however when i call resignFirstResponder on the textfield, the custom input view does not dismiss...any suggestions? UITextField *f=[[UITextfield alloc] init]; UIView *view=[[UIView alloc]…
Daniel
  • 22,363
  • 9
  • 64
  • 71
1
2 3 4 5 6 7 8