ios - How to load different text into the same view -


i have list of 20 chapters in app. when each clicked load text related chapter new view. question how can store data , load new view?

the data static doesn't need editable, cant seem head around how load text in format i'd (for example chapter 1 twice size chapter 2, different headings etc cant loop through text format @ same points in each chapter).

ive tried loading html files uiwebview apple rejected on grounds app ended being website. there must easy way store formatted data in files, can loaded uitextview or that, cant seem fathom out on own!

thanks help!!

peterb

have checked out nsattributedstring? great way have custom formatted , styled text. can store these in array kept in nsuserdefaults or singleton.

http://developer.apple.com/library/ios/#documentation/cocoa/reference/foundation/classes/nsattributedstring_class/reference/reference.html


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -