Add line breaks when displaying a long string in UIWebView

When displaying a paragraph with some long strings without line breaks in an UIWebView, the size of the character is too small for reading, as show in the following pic. Is there anyway to automatically add line breaks in the long strings as in the UILabel? Thanks in advance!

ps. the UIWebView is used to display an email body.


set the css as : style="word-break:break-all" to solve this problem

Need Your Help

How to avoid the callback “waterfall”?

javascript closures titanium-mobile

One of the reasons that I tend to dread writing Javascript for anything other than relatively trivial bits of functionality is that I've never found a decent approach for avoiding the callback wate...