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
2
votes
0 answers

Japanese input control

I have the following issue, concerning the way to fine control Japanese input in an iOS app. To make things clear I include an image to this post (see below). As one can see I have typed や in the input text field and a bunch of choices (や 役 矢 訳 ヤ 屋…
Michel
  • 10,303
  • 17
  • 82
  • 179
2
votes
1 answer

CustomTextField - AutoComplete/AutoCorrect won't dismiss on tap

So I created a custom text view using core graphics and have it conformed to the UITextInput and UITextInputTraits protocols. Everything works fine except for one weird/annoying behavior. The keyboard correctly displays auto correct suggestions,…
Aaron Hayman
  • 8,492
  • 2
  • 36
  • 63
1
vote
0 answers

UITextChecker and "Spell Checking"

I've successfully implemented UITextChecker in my custom view conforming to UITextInput to present users with the suggestions. I'd like to disable this feature based on the state of "Settings -> General -> Keyboard -> Check Spelling" settings…
serb
  • 308
  • 1
  • 3
  • 11
1
vote
0 answers

Username/password autofill on UITextField only fills out the selected custom view conforming to UITextInput

I've been fiddling with autofill for my signup flow on iOS, and I can't seem to get it to work perfectly. I have a custom view that has a UITextField as one of the properties and I build all my text fields as instances of that custom view. When I…
teradyl
  • 2,584
  • 1
  • 25
  • 34
1
vote
1 answer

Delegate method, textViewDidChangeSelection not triggered everytime

I have a UITextView embedded in a UITableView Cell, CustomCell. If I tap the return key when my curser is at the end of the text, I want to create a new cell below that cell, but if I tap return when I am in the middle of the textView, I want to get…
Natasha
  • 6,651
  • 3
  • 36
  • 58
1
vote
1 answer

VoiceOver does not repeat typed character on custom text view with UITextInput

I have custom text view that implement UITextInput. Everything works except the voiceover does not repeat the characters I typed using soft keyboard. Is there any additional API or services I need to implement in order to make it work?
1
vote
1 answer

Why does the Apple-generated strong password autofill have no text?

When using Apple's text input to generate a strong password, my text field is empty when I tap on Use string password. I'm using a UITextField with the content type of newPassword and everything works well, until I tap Use strong password from…
SirRupertIII
  • 12,324
  • 20
  • 72
  • 121
1
vote
2 answers

UITextInteraction + UIScrollView

I have a custom text input view that adopts the UITextInput protocol. This view is embedded within a UIScrollView. The UITextinput adopting view includes UITextInteraction. When I drag the selection handles to the edges (top or bottom) of the…
KnutKnatter
  • 61
  • 1
  • 2
1
vote
2 answers

Custom UITextfield with discontinuous bottom borders

I am now working on a UITextfield. I hope to know how to add four discontinuous bottom border to a UITextfield, and how to make the space between input digits larger to make them fit exactly on the four lines respectively. Moreover, if possible,…
Kevin
  • 23
  • 3
1
vote
0 answers

Horizontal Scroll on TextInput React Native

I have a TextInput that is not scrolling when the underlying text overflows the input on iOS. On Android the component is behaving normally as I expect, that is, whenever the text overflows the input it scrolls until the caret is visible and I can…
1
vote
2 answers

How can I get the current selected line number inside UITextView?

I am using the below written method for getting the current selected line number of textView having attributed text. It works fine if last line is not blank. If last line goes blank this method is not giving a proper line number. Method : -…
1
vote
4 answers

How to read text from UITextInput in swift?

I am a beginner in swift. I have class A : UIViewController { var textInput: UITextInput init(textInput: UITextInput) { self.textInput = textInput } func getText() -> String() { /// Here I need to get the current text from…
Sujisha Os
  • 1,311
  • 2
  • 11
  • 12
1
vote
1 answer

UITextInput: reset multi stage input suggestions

In my app I have implemented UITextInput to handle multi stage text input for my custom UITextField. I was wondering if anyone knows how to reset the multi stage input suggestions that appear above the keyboard when typing on the Japanese…
Ser Pounce
  • 14,196
  • 18
  • 84
  • 169
1
vote
1 answer

selectedTextRange return nil in UISearchbar iOS

I have aUISearchBar, I get theUITextfield in it and then I want to set selected Text range but it's always return nil. This is my code: UITextField *searchField = [self.searchBar valueForKey:@"_searchField"]; [searchField becomeFirstResponder]; //…
NTNT
  • 541
  • 1
  • 7
  • 18
1
vote
1 answer

HPGrowingTextView - "textInputView.frame.origin.y" is correct, but the text field actually not moved - sometimes

I'm debugging someone else's code - sorry I have very limited Objective-C experience. #pragma mark - Keyboard events - (void)keyboardWasShown:(NSNotification*)aNotification { NSDictionary* info = [aNotification userInfo]; CGSize kbSize =…