Extend UIWebView to handle all special links

Thursday, October 29th, 2009 Share on Twitter

Have you ever wanted to add an UIWebView to your application, so you can browse the internets without leaving your application? While it is a trivial task to add an UIWebView to a project, there are some links that an UIWebView will not handle. These are: mailto YouTube maps.google.com iTunes AppStore I've written a generic BrowserViewController, code ...

HowTo fit text inside a UIWebView

Monday, January 5th, 2009 Share on Twitter

If, like me, you want to make sure your text will fit inside your UIWebView (without scrolling), you can implement the following javascript: <script language='javascript' type="text/javascript"> function adjustHeight(maxHeight) { elem = document.getElementById("sign"); height = ...