It is a well known fact among iOS developers that creating screens with complicated formatted text is a hassle. UILabel, UITextView, and friends are not really designed for that purpose. The alternative that is often used to overcome those limitations is the versatile UIWebView combined with some local HTML content and CSS styling.
But the UIWebView itself comes with strings attached. In this post we are going to share three small tips that might help in making the UIWebView look more integrated with the rest of your UI.
I’ve mentioned in the past instances when you may want to use a UIWebView for tasks such as rendering .SVG files, but there could likely be instances when you want to go the other way. I see questions on how to do this popping up time and time again.
The library is from Marcus Westin and can be found with full documentation, and an easy to understand example here: