uitextrange Questions

4

Solved

How can I convert a UITextRange object to an NSRange? I've seen plenty of SO posts about going the other direction but that's the opposite of what I need. I'm using the UITextRange selectedTextRang...
Addlebrained asked 15/1, 2014 at 22:38

4

I am trying to get the selected range of text from a UITextView (and or UITextField) so that I can edit the selected text, or modify an attributed string. The method below is triggered when I make ...
Valvular asked 26/3, 2013 at 5:59

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

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

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
1

© 2022 - 2024 — McMap. All rights reserved.