June 18, 2008
UIWebView the only class for complex text display on the iPhone
The other day I was exploring the iPhone API looking for a view that would allow me to display text in a complex form like is accomplishable within the UIWebView. As I did so, I found the UITextView and initially thought I had found the Objective-C analog to what we can do in the UIWebView. As I read the description in the API documentation I came across this statement.
This class does not support multiple styles for text. The font, color, and text alignment attributes you specify always apply to the entire contents of the text view. To display more complex styling in your application, you need to use a
UIWebViewobject and render your content using HTML.