I have this help page I want to add to my application, but I'm not sure of how to format it. At the moment it's just an imag开发者_开发百科e in a scrollview, but surely there's a better way?
Many apps use a WebView to display formatted text. You can then use CSS to style your content as needed.
You could use NSAttribuatedString + RTLabel to display it (or of cause the default cheat of a UIWebView).
To display RichText (NSAttribuatedString use one of these).
- http://www.cocoacontrols.com/platforms/ios/controls/rtlabel
- https://github.com/Cocoanetics/NSAttributedString-Additions-for-HTML
- http://www.cocoanetics.com/2011/01/uiwebview-must-die/
- https://github.com/AliSoftware/OHAttributedLabel
- https://github.com/mattt/TTTAttributedLabel
Use webview to and with webservices so u can change it later so on
精彩评论