Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I display a NSAttributedString on an iPhone? [duplicate]

I believe I understand how to set NSAttributedString values but how on earth do you actually display them in the interface?

examples: UILabel, UITextView, etc.

Specific instructions would be greatly appreciated/

  • Thanks!
like image 765
DomMaiocchi Avatar asked Sep 03 '10 16:09

DomMaiocchi


1 Answers

you could also create a CATextLayer, which works fine with attributed strings... Just create the layer, and set it's string property...

Have fun... :D

like image 183
Alex Zak Avatar answered Oct 07 '22 02:10

Alex Zak