iphone - How does one interact with a string drawn using UIStringDrawing/CoreText -
I'm trying to work on an app that highlights some key words. For this reason, I'm seeing the use of CoreText or UIStringDrawing to highlight these lessons (such as bold / underline / italicize / color) in UITextView are not these features (and I have no luck with CatPlayer ).
In any case, I am capable of manipulating and pulling the string successfully. (Ii- I can find my key words in a string and apply appropriate symptoms).
The problem I am facing is that when the text is ready in such a way, it can not be interacted directly. Since the user may be able to delete / text the text view in question, this is an important thing.
At the moment, I have been trapped in the Drawing Routine. UITextView subclass (mostly just to see what I want to do). Is there a different method in the UITextView, which can be overridden, so that it uses my code to present my string? If not, how can I go about what I describe?
See the example of what I'm talking about, how the notes app searches and highlighted the phone number and address I am not looking for a phone number or address, but this point Comes.
Extra reading after a while, it seems that to create your own text view There are a lot of ways to sub-class / override whose text you can draw, the apple docks touch it, but they do not go into more detail.
Comments
Post a Comment