uitextposition Questions

5

Solved

I've been experimenting with UITextField and how to work with it's cursor position. I've found a number of relation Objective-C answers, as in Getting the cursor position of UITextField in ios C...
Salenasalene asked 21/1, 2016 at 11:16

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

7

I have a UITextField that I'm forcing formatting on by modifying the text inside the change notification handler. This works great (once I solved the reentrancy issues) but leaves me with one more ...
Discrown asked 30/9, 2009 at 19:37

1

I have a method for text changed in my web view to detect the visible rect for the current caret position. UITextPosition *endPos = self.selectedTextRange.end; CGRect rect = [self caretRectForPos...
Crease asked 17/11, 2014 at 16:50

2

Solved

I have a UISearchBar on which I am trying to set a cursor position. I am using UITectField delegates as I couldn't find anything direct for UISearchBar. Below is the code I am using: UITextField ...
Histology asked 14/10, 2013 at 21:15

2

Solved

I need to get the numeric value of the start and end of a UIText range. So far I can only print out the description as a string. From looking at the selectedTextRange, I take it that it is maybe ...
Rask asked 26/3, 2013 at 7:4

2

Solved

Is there any way for me to get at a UITextField's current caret position through the text field's UITextRange object? Is the UITextRange returned by UITextField even of any use? The public interfac...
Gilbert asked 19/3, 2012 at 6:48

4

Solved

I made box and I set line-height, the text is automatically vertically center. Is there a way or any kind of trick to set the text on the bottom of the box? div { width: 100px; height: 100px; b...
Bloodcurdling asked 25/5, 2012 at 19:8
1

© 2022 - 2024 — McMap. All rights reserved.