Questions tagged [uitextinput]

UITextInput is an iOS protocol that defines behaviors for interacting with and responding to text selection, autocorrection, and other text input events.

UITextInput is an iOS () protocol that defines behaviors for interacting with and responding to text selection, autocorrection, and other user text input events. It allows conforming classes to respond to dictation (on iOS 5.1+), modify selected text, position the selection UI elements, etc. UITextField () and UITextView () are the two most commonly used classes that conform to the protocol.

For more information, please see the Apple Documentation for UITextInput.

89 questions
0
votes
2 answers

inputAssistantItem and inputAccessoryView stopped working with ARC

I'm using this code to add some buttons above the on-screen keyboard in my iOS app. Note that I'm using the older inputAccessoryView method on phones and pre-iOS 9 devices, and the newer inputAssistantItem on iOS 9 tablets: UITextView…
arlomedia
  • 8,534
  • 5
  • 60
  • 108
0
votes
1 answer

Successfully give multiple text fields the same value

My app uses text fields to let users login. The login viewcontroller has a total of 4 text field IBOutlets: IBOutlet UITextField* fldUsername; IBOutlet UITextField* fldPassword; @property (nonatomic, retain) IBOutlet UITextField* …
Aaron Navies
  • 1,213
  • 1
  • 11
  • 16
0
votes
1 answer

Change font in UITextInput

I'm trying to develop a keyboard and it should use a different font then the default one. Here's the line: override func textDidChange(textInput: UITextInput?) { textInput.font = UIFont(name: "font name", size: 30) } But it doesn't…
0
votes
3 answers

My textinput in react native blurs directly after focus

I have two forms in react-native. One of the works perfectly, the other (in another component) has a bug. The TextInputs in the form keep blurring when getting focus. The video I made (see gif below) shows that whenever I click in the input it gets…
Mosselman
  • 1,718
  • 15
  • 27
0
votes
1 answer

How to detect from inside iOS keyboard the UITextInput settings

I would like to customize the iOS keyboard behavior to adapt to the UITextInput inside the app that it's showing up. For example, when someone entering a URL inside Safari, the keyboard's return key should instead say "Go", autocorrect and…
daspianist
  • 5,336
  • 8
  • 50
  • 94
0
votes
1 answer

How to test if User has changed UITextInput?

I'm developing a custom keyboard for iOS, using the UIInputViewController I have implemented the following methods: textWillChange, textDidChange. I want to know when user changes the current text field and moves to another one in order to configure…
Emil Adz
  • 40,709
  • 36
  • 140
  • 187
0
votes
1 answer

iOS how to combine keyboard with a text field and show them together?

I'm trying to create a text entry widget for my app. I found XCDFormInputAccessoryView example on Github and modified it so the text field is located on the accessory view. This, in theory, allows me to call the text entry widget from any part of my…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
0
votes
1 answer

IOS: Tokenizer on UITextInput is never called

I have a UITextInput implementation with one small problem that seems to be screwing up my ability have good AutoCapitalization: The tokenizer property never gets called (even after calling becomeFirstResponder), so my Custom Tokenizer never gets…
chad
  • 1
  • 1
0
votes
1 answer

MonkeyTalk not recognizing UITextfield input event

I am using Monkeytalk v1.0.62 and its not recognizing textfield input event inside the UIAlertview. If I type any text inside the textfield, it shows nothing while recording or in playback. It seems like the monkeytalk wont recognize UITextfield…
Umesh Kumar
  • 193
  • 3
  • 17
0
votes
1 answer

UITextField InputAccessoryView Crashing Application

I have a simple UIViewController with a few objects in it: A UITextView, and a UIToolBar that gets added as a InputAccessoryView to the UTextView. When viewDidLayoutSubviews is called I set a notification observer to call a function…
Destiny Dawn
  • 1,457
  • 3
  • 15
  • 29
0
votes
1 answer

How to get range of characters from a tapped word UITextview

I need to get the range of characters from a tapped word from a UITextView. I have set up a UITapGestureRecognizer on my instance of UITextView *tv. I currently have a solution that can tell me the word that was tapped, as described in this…
GeorgeBuckingham
  • 195
  • 1
  • 1
  • 10
0
votes
1 answer

How do we implement selectionRectsForRange: from UITextInput Protocol?

How do we implement selectionRectsForRange: from UITextInput Protocol ? Has anybody figured out this one? Is it just very dependent upon specific use-case needs? Or is there something in the frameworks that will call this method? To silence the…
uchuugaka
  • 12,679
  • 6
  • 37
  • 55
0
votes
1 answer

UITextInput - Is it OK to return Incorrect 'beginningOfDocument' & 'endOfDocument'?

I'm creating my own Text Editor in iOS using Core Text. Pretty much everything works great with one exception: Stuff really starts to slow down when the text document is "large". I've discovered that iOS is requesting the entire document text on…
Aaron Hayman
  • 8,492
  • 2
  • 36
  • 63
0
votes
4 answers

How can I programmatically dismiss the autocorrect popover in a UITextView?

I'm doing some custom auto-complete stuff on my own with insertText:, but if there's an autocorrect suggestion visible the view gets into a weird state. If I use [textView unmarkText], it dismisses the autocorrect popup thingy -- but it accepts the…
Ian Henry
  • 22,255
  • 4
  • 50
  • 61
1 2 3 4 5
6