Codec ░ UIWebView

275UIWebView – checking when user clicks a link

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {

// intercepting web click in the webView
NSLog(@"%@, %i", [request.URL absoluteString], navigationType);
}

Don’t forget to set <UIWebViewDelegate>

569Layering one UIImage onto of another UIImage 560#import vs #include in Objective C – A quick reminder 553CAAnimation and the Snapback Problem 532OSC to and from the iPhone with VVOSC 536Adding a custom delegate

195UIWebView, Changing filenames with Javascript

Calling JS from webViewDidFinishLoading, modifying paths to local. Before that all the images had to be stored into the local path.

http://iphoneincubator.com/blog/windows-views/uiwebview-dynamically-modify-html-documents

Interesting direction, but still looking for an elegant way to mix external sites (HTML) with local content (images, scripts…)

275UIWebView – checking when user clicks a link 233Modifying Quicktags in WordPress 192Mobile Safari/UIWebView Supported Meta Tags 168Google Translate *New & Improved Bookmarklet

192Mobile Safari/UIWebView Supported Meta Tags

MetaTags.html

ConfiguringWebApplications.html

<meta name=”apple-mobile-web-app-capable” content=”yes”>
<meta name=”apple-mobile-web-app-status-bar-style” content=”none”>
<meta name = “viewport” content = “width = device-width”>
<meta name = “viewport” content = “initial-scale = 1.0, user-scalable = no”>
<link rel=”apple-touch-icon” href=”/custom_icon.png”/>
<link rel=”apple-touch-startup-image” href=”/startup.png”>

275UIWebView – checking when user clicks a link 195UIWebView, Changing filenames with Javascript