iphone - How can I render different paragraph styles in Core Text? -


i'm having difficult time trying work out how build page using core text, have multiple paragraphs follow 1 another, in different styles.

in other words, have title paragraph, followed subtitle paragraph, followed several body paragraphs. in html terms, be:

<h1>some title</h1> <h2>some subtitle</h2> <p>blah blah...          ...</p> 

i have got far creating ctframesetter title, creating ctframe that, , drawing context. don't understand how create new frame flows on previous paragraph. can please? or there online tutorial help?

thanks!

:-joe

the easiest way style nsattributedstring different styles before create framesetters.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -