uitextinput Questions

2

Solved

I have a UITextField in which the user is expected to type a sentence which we tell the user to type. So the sentence to type is already known to us. Midway of the sentence, the user has to secretl...
Parbuckle asked 19/7, 2015 at 14:15

4

Is there a way (crazy hacks welcome) to get the current line as a string of a UITextView? This would include word wrapping, etc. For example, in this case: The method would return "stack overfl...
Unhinge asked 9/7, 2013 at 20:43

3

I'd like to programmatically put my UITextField input into dictation mode, without requiring the user to bring up and select dictation from the keyboard. Searched the API documentation but can find...
Chondro asked 6/7, 2013 at 13:22

1

Solved

After adding a tap recognizer to my UITextView subclass, I'm attempting to get the character that is being tapped: var textRecognizer: UITapGestureRecognizer! required init?(coder aDecoder: NSCode...
Shondrashone asked 29/3, 2018 at 8:53

2

Does UITextField ignore the inputDelegate? Using the following code: - (void)viewDidLoad { [super viewDidLoad]; self.textField.inputDelegate = self; NSLog(@"textField: %@", self.textField); N...
Boisterous asked 27/3, 2012 at 3:48

1

According to the doc, Marked text, which is part of multistage text input, represents provisionally inserted text that the user has yet to confirm. It is styled in a distinctive way. The range...
Stereochemistry asked 8/1, 2014 at 6:8

3

I have different examples where we can update the UITableViewCell height based on growing UITextView which actually is working for me. The issue which I am facing is, I have more subviews below UIT...
Candra asked 9/12, 2015 at 18:26

1

It seems that with iOS 8 and 9, Xcode 7 the properties beginningOfDocument and endOfDocument of UItextField are always nil whathever you do. Even worse they are not of an optional type (UITextPosit...
Mallee asked 23/10, 2015 at 12:44

5

Solved

I could successfully add tap gestures to a part of UITextView with the following code: UITextPosition *pos = textView.endOfDocument;// textView ~ UITextView for (int i=0;i<words*2-1;i++){// *2...
Summitry asked 24/7, 2013 at 6:48

2

Solved

I've spent hours trying to figure out how to create/then get a custom inputView to work. I have a grid of TextInputs (think scrabble board) that when pressed should load a custom inputView to inser...
Pigtail asked 28/10, 2014 at 5:13

3

Marking text in a UITextView, but for some reason it's refusing to accept anything I give it with setMarkedTextStyle. -markedTextStyle always returns nil, and the marked text always looks the same ...
Jacobin asked 26/7, 2014 at 22:45

1

Solved

Ok, so I know Apple's UITextInput protocol requires the two UITextRange properties selectedTextRange and markedTextRange and the documentation says that selectedTextRange is a subrange of markedTex...
Bioastronautics asked 8/7, 2014 at 13:7

2

UIKit text input components, such as UITextView and UITextField have a property inputView to add a custom keyboard. There are two questions I have relating to this. If the keyboard is currently v...
Abutment asked 7/2, 2013 at 16:43

3

Solved

Is there a way to add a cancel button to the keyboard displayed for UITextField? Looking over the UITextInputTraits Protocol Reference, I could not find anything, including trying out the different...
Kagera asked 26/6, 2012 at 16:15

3

Solved

How to respond to starting dictation? Known ways of responding to dictation: dictationRecordingDidEnd - respond to the completion of the recognition of a dictated phrase. dictationRecognitionFai...
Whitver asked 22/2, 2013 at 12:15

1

Solved

I have user interface with UISearchBar and I implement the UISearchBarDelegate's searchBarSearchButtonClicked: to perform the search. I do not have a device with dictation support to test this, so ...
Journalize asked 18/7, 2012 at 9:11

2

Solved

I want to set the marked text programmatically and since iOS5 UITextView and UITextField conform to UITextInput this should be possible but for some reason I always get the markedText to be nil. :(...
Riegel asked 9/11, 2011 at 14:41
1

© 2022 - 2024 — McMap. All rights reserved.