Friday, 15 February 2013

ios - Change NSAttribtuedString Formatting Starting at Index -


I have a enabled with UITextView attributes, and I want to change the formatting (font / Alignment / color / etc) in the NSAttributedString from a point. In other words, there is no specific part of the underlying NSAttributedString , I want to change the copy, I just want to add the next object to UITextView , from which there are different formats. For, you can imagine a UITextVIE with a string in it, and then the user enters a new line and taps the button to increase a button. font size. The user does not want to increase the font size of everything , just starting at that point.

Can this be done? Thank you.

If you need precise control over the dynamic style behavior of your UITextView (And if you have> = iOS 7), then you should consider using the text kit, and specifically sub-clinging. Is one, and a.


No comments:

Post a Comment