Search code examples
iosxcode5uistoryboardnsattributedstringxcode-storyboard

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!


Solution

  • 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