sixstatesaway
sixstatesaway

Reputation: 1106

Custom Font in Text View/Interface Builder

I hope this is a really simple question, but it's stumped me. Basically, I have a huge amount of text that I'm using the text view for. For the most part, it's just the system font. However, I would like to format "headers" every few paragraphs in the large chunk of text with a custom font (that I've added to my project) and background color. How do I target small pieces of text within the text view?

If it were just a small piece of text, I would just add a label and do it with code, but since this a huge piece of text, what's the best way to do it?

Thanks!

Upvotes: 1

Views: 246

Answers (1)

Hanon
Hanon

Reputation: 3927

If you load a large amount of static text with formatting, I suggest you save it as a html file and load it into UIWebView.

Upvotes: 1

Related Questions