This document provides tips and examples for using UIWebView in iPhone SDK, including:
- Loading local HTML files into UIWebView using pathForResource and loadRequest
- Loading HTML strings into UIWebView using loadHTMLString
- Interacting with JavaScript in UIWebView
- Passing data between Objective-C and JavaScript using URL schemes
- Implementing a custom URL cache to block certain URLs
22. iPhone SDK
data URI scheme
<p>This is a data encoded image.</p>
<img src="data:image/jpeg;base64,/9j/
4AAQSkZJRgABAQEAYABgAAD/
2wBDAAEBAQEBAQEBAQEBAQEBAQICAQEBAQMCA
gICAwMEBAMDAwMEBAYFBAQFBAMDBQcFBQYGBg
YGBAUHBwcGBwYGBg
... +0lShKd4r3XzOLlePTXToYYHOc4w3C9WjTrzj
T5rcqlJKztdWTtZ9e5+p9FFFfsB8gf/2Q==" />