Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding attributed text to UITextView directly in Storyboard

I would like to place attributed text directly into a UITextView in the UITextView's setAttributedText field in the Attributes Explorer of my storyboard in Xcode 5. I was hoping to avoid creating the NSAttributedString programmatically because this text will need to be localized and I would like to use the storyboard localization.

If it's not possible, I can create it manually in the UIViewController. But I was hoping to do this directly to save a little coding.

Anyone know how to do this (assuming it's possible)?

Thanks in advance!

like image 465
Rob Avatar asked Nov 07 '25 12:11

Rob


1 Answers

I think this is the option that you are looking for. After selecting "Attributed", you can paste anything you want below.

enter image description here

this

like image 65
gsach Avatar answered Nov 10 '25 15:11

gsach



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!