I would like to know how the UIWebView
handles images when receiving HTML from a standard NSURLRequest
. For instance if I had the following HTML;
<body>
<!-- header -->
<header>
<div class="container">
<img src="images/logo.jpg" WIDTH="500" HEIGHT="60" alt="pingpong">
</div>
</header>
// then the rest of the site (txt, links, more pics etc)
</body>
So considering the HTML above if I were to make the following requests for this HTML like so;
- (void)viewDidLoad {
NSString *urlAddress = @"http://www.myurl.com";
//Create a URL object.
NSURL *url = [NSURL URLWithString:urlAddress];
//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
//Load the request in the UIWebView.
[webView loadRequest:requestObj];
}
When 'webView' receives the 'requestObj' via the loadRequest
call, how does the webview handle the images found in the HTML?
<img src="images/logo.jpg" WIDTH="500" HEIGHT="60" alt="pingpong">
What does the UIWebView
do when it encounters an image like this? how does it get the image data/file etc.?